This is Episode #3, where we merge a cleaned up state machine diagram from Astrid, and introduce ID classes for Person and Player. We add constraints that a game can only hold 4 players, but existing players can rejoin. Then start creating the HTML front-end for joining the game. After taking some advice from Cody (AI coding assistant), we add Spring Security, and then realize our previous "fake" login mechanism isn't needed, so we do it the "right" way.
We then finish by test-driving the front-end "Lobby" where a host will create a new game and plan out the next steps.
I'm developing the online version of JitterTed's TDD Game (see https://tdd.cards for the physical game) 100% live in front of viewers.
Tech Stack: Java with Spring Boot, Spring MVC and (eventually HTMX), JUnit testing via TDD, and architected according to Testable (Hexagonal) Architecture principles.
You can find the code on GitHub at: https://github.com/jitterted/tdd-game and look through the commits to see the progress made in the videos. You can also find me on Twitter: @jitterted / jitterted
These videos are from my live coding that you can find on Twitch: https://JitterTed.Stream
You can discuss this on my Discord: https://ted.dev/discord
Other episodes in this series: • JitterTed's TDD Game: Online Version