play a casual game of connect 4 in your terminal. Writen in Rust.
- Game Logic Implementation
- Graphics Engine with ASCII game state and menu logic
- Networking Logic (with
libp2p
, see tutorial for more info)
- P2P User experience
- input your name
- START or JOIN a game
- start => joins room of open games and waits for someone to join...
- join => display all open games! (can select a peer or refresh the page)
- make your move... (check for invalid moves)
- valid move 1. update lokal game state 2. send move to other client as payload
- wait for move from friend
- Brutal Mode => both player have same color, remember your position you must
- animate drop
Screen 0
=== connect-4-cli ===
Welcome! (intro text goes here)
Whats your name?
>
Screen 1
=== connect-4-cli ===
Welceome dcts
> (1) Start a Game
> (2) Join a Game
Choose action by typing a number:
>
Screen 2
=== connect-4-cli ===
✅ game created
joining lobby...
LOBBY
NAME | ID
(*) dcts...............| hceui17e8
art_brock..........| lkv32v873
frodo..............| sv7823uzd
gandalf............| v824hjfvx
👀 waitig for someone to join your game ... 👀
- Idea how to structure it
- title & info
- game state
- menu (or loading screen)
=== connect-4-cli ===
🟡 dcts
🔴 gandalf
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | |🔴| |🟡|🟡| |
| |🟡|🟡|🔴|🔴|🔴|🟡|
*--*--*--*--*--*--*--*
waiting for gandalf to play...
>