From 91e5f0695057845cb6e7984fc14f26f57e3d3ef2 Mon Sep 17 00:00:00 2001 From: Vincent Rodley Date: Wed, 20 Aug 2025 12:50:23 +1200 Subject: [PATCH] ooh the readme looking nice now --- README.md | 30 ++++++++++++++----------- colours.py => cli/colours.py | 0 main.py => cli/game.py | 0 settings.json => cli/settings.json | 0 Baloo2-Bold.ttf => gui/Baloo2-Bold.ttf | Bin button.py => gui/button.py | 0 guitest.py => gui/game.py | 0 7 files changed, 17 insertions(+), 13 deletions(-) rename colours.py => cli/colours.py (100%) rename main.py => cli/game.py (100%) rename settings.json => cli/settings.json (100%) rename Baloo2-Bold.ttf => gui/Baloo2-Bold.ttf (100%) rename button.py => gui/button.py (100%) rename guitest.py => gui/game.py (100%) diff --git a/README.md b/README.md index 2402b49..0a3e574 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,23 @@ -# connect-4 +# PyConnect-4 -This will eventually become a connect-4 game written in Python with an AI opponent you can play. +As the name suggests, this is Connect-4, made in Python. There are two versions, CLI, where you play the game in a terminal, and GUI where you play in a PyGame GUI. -I will make and train the AI myself. +## Both gamemodes feature: -I might make a GUI in Pygame, depends if i cbs +**Player vs Player (on the same device)** +**~~Player vs Player (LAN)~~** +**Player vs CPU (a minimax algorithm that is VERY strong)** -todo list: -~~player vs player on the same device~~, player vs player lan, and player vs computer +**A settings system, which allows the user to switch between tile display modes, as well as change the strength of the CPU.** -pvp lan todo: - (It's in maintenance rn cuz of 1,000,000 serious vulns) - 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. +## To-do list: -player vs computer todo: - sometimes it prioritizes vertical 3-in-a-rows instead of a win. (balance threat and winning) \ No newline at end of file +### Player vs Player (LAN): + (take it out of maintenance) + remember the last ip you played against. remember ip by hostname of pc? + like remember all the ips youve played against and store the hostname - ip combo in a file so you can play against "t495" instead of 192.168.1.xxx + stop more than 2 people joining one game (or implement a spectator system ig) + make it so when people leave, the game actually ends instead of just sitting there / crashing. + +### Player vs CPU: + fix priorities, as sometimes it prefers a vertical 3 in a row instead of a horizontal win. \ No newline at end of file diff --git a/colours.py b/cli/colours.py similarity index 100% rename from colours.py rename to cli/colours.py diff --git a/main.py b/cli/game.py similarity index 100% rename from main.py rename to cli/game.py diff --git a/settings.json b/cli/settings.json similarity index 100% rename from settings.json rename to cli/settings.json diff --git a/Baloo2-Bold.ttf b/gui/Baloo2-Bold.ttf similarity index 100% rename from Baloo2-Bold.ttf rename to gui/Baloo2-Bold.ttf diff --git a/button.py b/gui/button.py similarity index 100% rename from button.py rename to gui/button.py diff --git a/guitest.py b/gui/game.py similarity index 100% rename from guitest.py rename to gui/game.py