Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__pycache__/
env/
test.py/
test.py/
settings.json
p2sc.py
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This will eventually become a connect-4 game written in Python with an AI opponent you can play.

I will make and train the AI myself.
~~I~~ Vincent will make and train the AI ~~myself~~ himself.

I might make a GUI in Pygame, depends if i cbs
~~I~~ Vincent might make a GUI in Pygame, depends if ~~I~~ Vincent cbs

todo list:
~~player vs player on the same device~~, player vs player lan, and player vs computer
Expand All @@ -14,3 +14,9 @@ pvp lan todo:
remember the last ip you played against. remember ip input with a name?
stop multiple ppl joining one game (or add spectators)
make it so when ppl leave, the game ends instead of hanging or crashing.

sols todo:
custom play modes - 3 player?

allow for inf players using numbers in the tilesheet and *arg in play for providers
mods - can use from mods import * to overwrite functions
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def clear():
def colourTile(tile):
try:
with open("settings.json", "r") as f:
settings = json.load(f)
settings: dict = json.load(f)
mode = settings.get("display_mode", "coloured_text")
except (FileNotFoundError, json.JSONDecodeError):
mode = "coloured_text"
Expand Down Expand Up @@ -364,12 +364,12 @@ def play_local_pvp():
play_game(local_move_provider, local_move_provider)

def play_lan_server():
print("PvP LAN is in maintenance due to exploits.!")
print("PvP LAN is in maintenance due to exploits!")
input("Press Enter to return to menu...")
return

def play_lan_client():
print("PvP LAN is in maintenance due to exploits.!")
print("PvP LAN is in maintenance due to exploits!")
input("Press Enter to return to menu...")
return

Expand Down
3 changes: 0 additions & 3 deletions settings.json

This file was deleted.

Loading