this post was submitted on 18 May 2024
8 points (83.3% liked)
Game Development
3439 readers
1 users here now
Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You could start with a multiplayer server that handles the game logic, and a command line client that that can interact with it, create a game room and invite someone to it. You can handle realtime communication with socket.io. Once you have the client and some game rules, you can implement the client on a frontend using a canvas or game engine. You could then add the bot opponents using simple random number generation and some basic strategies.
Are there patterns for rules and logic?
I think the command pattern would be useful. The user requests to perform a command. The command implementation can define preconditions and actions that mutate your game state.