This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import * | |
def divide(a,b): | |
return a//b,a%b | |
def get_bezout(a,b): | |
rnm2=a | |
rnm1=b | |
unm2=1 | |
unm1=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Grid(): | |
def __init__(self,x,y,grid=None): | |
if grid:self._grid=grid | |
else:self._grid=[None for i in range(x*y)] | |
self._dims=[x,y] | |
def setAt(self,x,y,value): | |
if not x in range(self._dims[0]) or not y in range(self._dims[1]):raise ValueError("invalid dimensions") | |
self._grid[x+y*self._dims[0]]=value | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kandinsky import * | |
from random import * | |
from ion import * | |
from time import * | |
class Mine(): | |
def __init__(self,mode=0): | |
self.time=0 | |
self.mode=mode | |
self.game=[[0 for i in range([9,15,30][mode])] for i in range([9,13,16][mode])] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import * | |
from kandinsky import * | |
from ion import * | |
from time import * | |
class SystemExit(Exception):pass | |
MOUSE_IMG='\x00\x00\x00\x00\x00\x00\uc1a6\uc1a6\uc1a6\x00\x00\uc1a6\uc1a6\uc1a6\x00\x00\uc1a6\uc1a6\uc1a6\x00\x00\x00\x00\x00\x00' | |
CHARS_DEFAULT=[ |