Inspiration
We were inspired by a wide variety of online strategy-simulation/puzzle games, such as Mini Metro, Flow Free, and Cookie Clicker, as strategy games are a great way to keep one's mind active. So, we made our own take on these simulation-type games and turned it into a turn-based strategy game: Trainz. We wanted to emphasize the competitive aspect to who can build their empire first, and create a fun pastime activity to enjoy with friends.
How to play
Objective Players take turns building out their Trainz empire! The first player to serve 1000 passengers is crowned the winner!
Directions Each turn, you will expand and upgrade their railroad network. Serve more passengers by creating new railways, constructing new metro stations, or buying upgrades.
- To create a railway, left-click a metro station. Then, click any adjacent cell to continue constructing the railway. The railway is complete when you connect stations together. You can also automatically generate a railway by left-clicking two stations. Each set of set of tracks costs $10.
- To create a station, right-click on a cell. This station can only be used by the player who created it. Each station costs $500.
- To upgrade your network, click one of the three options shown below the map. Prices vary depending on the upgrade.
When you are satisfied with your changes, you can click "End Turn". If you made a mistake while creating your railway, you can click "undo/redo" to revert the changes you have made.
At the end of each turn, the railway will operate, delivering more passengers and earning money. The amount of money depends on how many passengers you serve and the train fare that you charge.
If both players reach 1000 passengers on the same turn, then the game will be slightly extended, and the goal passenger count goal will be increased. The first person to reach the new goal is the winner!
How we built it
We used boardgame.io to handle multiplayer connections and help manage state between turns. We used React for the frontend and pure SVG to draw the game board. Everything was written in JavaScript. The backend is deployed on Heroku and the frontend is on the static web host Surge.
Built With
- boardgame.io
- heroku
- javascript
- react

Log in or sign up for Devpost to join the conversation.