ebellbog / tree-climber

A visual tool for exploring decision trees in turned-based puzzles & games

Home Page:http://elanabellbogdan.com/tree-climber/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TreeClimber

A visual tool for exploring decision trees in turned-based puzzles & games. TreeClimber lets curious players try out all the possible "what-ifs," then learn from the graph they create! (This project may be especially useful for CS students studying algorithms.)

A chess board with two other chessboards connected to it, resembling child nodes in a graph. Each board has various numerical statistics displayed to the left side.

Currently, the only content available is The Bishops Puzzle, originally imagined by H. E. Dudeney in 1917, but popularized in the 1993 computer game The Seventh Guest. A single player attempts to swap the positions of the black & white bishops on a chess board, without moving any piece into a vulnerable square.

Future work may include similar chess puzzles (eg The N-Queens Problem, Chess Contradance) or even sliding block puzzles (à la Rush Hour).

Trying it out

Most features should be usable on both desktop & mobile devices. The easiest way to play is to visit https://elanabellbogdan.com/tree-climber, where it's hosted publicly!

If you want to run it yourself instead...

Building locally

  1. Install yarn (or npm)
  2. From the project directory, run yarn install
  3. Then run yarn start and wait for the build to complete
  4. Finally, pointer your browser at localhost:9000

(You can also run yarn build to update index.html and the files in the dist directory.)

Tech

TreeClimber is largely written in vanilla JS, with some assistance from jQuery and Handlebars. The project is built using webpack, which converts the Less files to CSS and bundles everything all up together.

About

A visual tool for exploring decision trees in turned-based puzzles & games

http://elanabellbogdan.com/tree-climber/


Languages

Language:JavaScript 57.4%Language:Less 23.5%Language:HTML 16.9%Language:Handlebars 2.2%