Tag: java
All the articles with the tag "java".
-
Connecting Angular Frontend to Spring Backend with a Randomized Board
Synchronizing GameState models between the Angular frontend and Java backend to enable live polling, and implementing Catan-rules-compliant random board shuffling using Java's Collections.shuffle.
-
Pseudo-Coding OOP Relationships Between FSM States and Actions
Translating the finalized game flow design into concrete Java class relationships—how FSM States and Actions relate to GameService and GameController—while safely deferring auth and persistence until game logic is stable.
-
Mapping REST API Design to the Catan Finite State Machine
A focused design session working through the full Catan ruleset and sketching how a REST API maps to the proposed FSM—what actions the API should expose and how the state machine handles them in a scalable, maintainable way.
-
Implementing the Game Service and Discovering the Bruno API Client
Creating the CatanGameService with game state and action enums as the backbone of the eventual FSM, and switching to Bruno as a local-first, open-source alternative to Postman for making REST requests.
-
Scaffolding the Java Spring Backend and Connecting to Postgres
Setting up a Java Spring project with JDBC, Flyway migrations, and Spring Web, then installing Postgres locally and running the first end-to-end REST test via curl and the IntelliJ debugger.
-
Designing Game State Persistence and a Custom Finite State Machine
Architecture session diagramming how Catan game state could be stored in a relational database and how player actions can be validated and broadcast. Evaluated Spring State Machine and chose a simpler custom FSM approach for MVP.
-
Configuring Neovim and Scaffolding the Angular Frontend
Setting up a Neovim IDE from scratch with TypeScript and Angular LSP support, then scaffolding the Angular project with the hexagon CSS from earlier prototyping. Working through the geometry math for positioning Settlement pieces on the board.