cleaned up code some more
This commit is contained in:
18
Connect4/connectCore2.py
Normal file
18
Connect4/connectCore2.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/python
|
||||
# connectCore.py, core of connect4
|
||||
# Written by Caleb Fontenot
|
||||
|
||||
# Brainstorming: We could use multidimentional lists to store x, y, and color information
|
||||
# Connect 4 grids are 7 x 6 (7 collums, 6 rows)
|
||||
# Options for list formats:
|
||||
# List per slot, seems a bit bulky to manipulate
|
||||
|
||||
# Brainstorming: We could use multidimentional dicts for storing the data
|
||||
# Seems easier in theory to manipulate
|
||||
collum = 7
|
||||
row = 6
|
||||
for range(row) in row:
|
||||
connect4Slot = {'x': 0, 'y': 0, 'color': "null"}
|
||||
|
||||
connect4Row = {connect4Slot}
|
||||
print(connect4Slot)
|
Reference in New Issue
Block a user