tuxDB - linux gaming aggregate
TUXDB - LINUX GAMING AGGREGATE
 NEWS TOP_PLAYED GAMES ITCH.IO CALENDAR CHAT WINE SteamDeck
 STREAMERS CREATORS CROWDFUNDING DEALS WEBSITES ABOUT
 PODCASTS REDDIT 

 

SUPPORT TUXDB ON KO-FI

MENU

ON SALE

New Twitch streamer aggregation implemented (#FuckTwitch) due to Twitch's API issues (more info on my Discord )


https://sogamestudios.itch.io/trails-and-towers


About

Trails and Towers (or simply Trails) is a mathematical game for two players. The player's objective is to take as many towers as possible by making trails on a square field with certain rules.

This is the first cross-platfrom implementation of that game. You can explore source code of the game on GitHub.

Notice that since the project is open-source, it has been remain minimalistic as possible. The purpose of this is to make source code easily readable and modifiable. Thus, it may not provide some advanced features as key mapping or multiplayer. But you can code any of that features by your own!

Controls

Use arrow or WASD keys to choose move direction, or click on the target cell with mouse (click on a general move direction will also work). Possible cells to move to will be shown as a green ones. Use Escape to quit the game and R to restart the game.

Rules

Classic version of Trails and Towers has three towers on diagonal distance of one and 11x11 field. As being said, player's objective is to take as many towers as possible. Therefore, first player which takes more than a half of towers, wins. Player loses if none move can be done in player's turn.

Each player have colored base in opposite corners of the field. Usually, base color is blue for player one and red for player two and blue base is located in upper left corner when red base is located in bottom right corner. Towers are placed from field center at specified distance and on the diagonal which connects free cells in corners of the field. Cell where the tower is placed does not count as free.

From the bases players making moves (player one goes first) in one of possible directions: up, down, left or right. If cell in chosen direction is free, player can occupy it. Cell which is already occupied by current player or by opponent cannot be occupied again.

By moving at the same direction as last turn player will accumulate boost, which means that every turn player will move further by one cell. When player changes moving direction, boost is gone. With boost player can jump over occupied cells, if target cell is free or a tower is in there. When player jumps over, every free cell between last occupied cell and target cell becomes occupied.

If player has boost and target cell is "over" the bound, player occupies every free cell in chosen direction up to bound, but only if cell next to the bound is free too. Lastly, player can take (occupy) tower only with boost and only when tower cell is target.