zoridor
zoridor

ringtailsoftware/zoridor

MIT

A terminal Quoridor game

3 3 0 0
1
build.zig.zon  build.zig 
View on Github  
Updated: 12:58:44 AM Wed Nov 27 2024 Size: 1352KB Created: 8:30:36 AM Sun Nov 24 2024
Dependencies:
mibu yazap
zig  fetch  --save  git+https://github.com/ringtailsoftware/zoridor

Zoridor

A terminal version of the Quoridor board game

Quoridor tutorials:

I just want to play! don't make me install Zig

docker run --rm -it -v `pwd`:/app -w /app kassany/alpine-ziglang:0.13.0 zig build run

Running

Get Zig

zig build run

Playing

  • You are Player 1. Your objective is to move your red pawn from the top of the board to the bottom of the board
  • Player 2 starts at the bottom and is attempting to reach the top of the board
  • On each turn you can either move your pawn or add one fence piece to the board (you have 10 to start with)

Moving a pawn

  • Use the cursor keys to choose where to move to. Your pawn may only move one square on each turn and cannot move diagonally
  • The "[ ]" mark where your pawn will move and is coloured green for a valid move and red for invalid
  • Once you have selected a move, press enter to move the pawn

Adding a fence

  • Press tab to switch from pawn to fence mode
  • Use the cursor keys to choose where to add the fence
  • Fences must not cross other fences, or completely block either player from reaching their goal. An invalid fence position will be shown in red
  • To rotate the fence, press space
  • Once you have positioned the fence, press enter to place it

Command line options

Help

zig build run -- -h

To watch machine vs machine matches forever:

zig build run -- -1 machine -2 machine -f

Theory

For a comprehensive examination of playing Quoridor, see Lisa Glendenning's Thesis