Git Product home page Git Product logo

quoridor's Introduction

Quoridor

WIP - trying to build the strategy game Quoridor for the web platform

Contribute

Setup

yarn

Start

yarn start

Build

yarn build

quoridor's People

Contributors

lukehedger avatar

Watchers

 avatar  avatar

quoridor's Issues

Add logic for walls

Tasks

  • Display walls to right of board
  • Click a wall to "select"
  • Then click a square to place wall (over that square, to the bottom and one to right)
  • Don't allow wall clicks on extreme squares
  • Click wall again to flip to vertical, and again to horizontal (need to monitor clicks)
  • Click wall on right again to "deselect"
  • Prevent wall from being moved again once placed
  • Don't allow pawns to move through walls
  • Count a wall place as "make move" - use endMove?
  • Only allow each player to place maximum of 10 walls

Rules

  • There are 20 walls in total in a game
  • Walls are split equally among players - so in a 2 player game each players gets 10 walls
  • Walls are 2 squares long can be placed in the 'groove' exactly across 2 squares
  • Pawns cannot move 'through' walls - they must go around
  • A move consists of either moving a piece or placing a wall - not both
  • Walls cannot be moved once placed
  • A wall cannot be placed in a position that would cut off the only remaining path to the side of the board a pawn must reach to win
  • See notation for walls

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.