mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-09 19:30:40 +00:00
start the gui using turtle
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from mailbox import linesep
|
||||
|
||||
import board as bd
|
||||
import drawer as dw
|
||||
|
||||
|
||||
def creerGrille(N, M, v=0):
|
||||
@@ -31,6 +30,12 @@ def getCoords(known_grid, N, M):
|
||||
return bd.get_coords(known_grid)
|
||||
|
||||
|
||||
def main2():
|
||||
grid = creerGrille(8, 8)
|
||||
placerMine(grid, 10)
|
||||
dw.draw_board(grid)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
N, M = 8, 8
|
||||
grid = creerGrille(N, M)
|
||||
@@ -64,4 +69,4 @@ def main() -> None:
|
||||
known_grid[coord[1]][coord[0]] = True
|
||||
|
||||
|
||||
main()
|
||||
main2()
|
||||
|
||||
Reference in New Issue
Block a user