Skip to content

daniel-citrus/Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Sim Logo

Sim - The Pencil Game

Sim is a two-player game. Each player will take turns coloring any uncolored lines in the play area. The first player to create a triangle loses the match.

Live Demo

Gameplay

Sim gameplay, players taking turns placing lines

Rules

All three corners (ie. vertices) of the triangle must be on the outer edge of the diagram.

Triangle

A losing triangle highlighted on the board A losing triangle highlighted on the board

Non-Triangle

A non-triangle on the board A non-triangle on the board

Table of Contents
  1. About The Project
  2. Getting Started
  3. Roadmap
  4. License
  5. Contact

About The Project

This project aims to demonstrate the use of factory functions, complex algorithms, data structures, and encapsulation. The Computer opponent uses the Min-max algorithm with alpha-beta pruning to make smart decisions. The level of skill in these decisions vary depending on the selected difficulty.

(back to top)

Built With

  • HTML5
  • Sass
  • Javascript
  • Webpack

(back to top)

Getting Started

To setup this project locally you must have Node Package Manager (npm) installed.

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/daniel-citrus/Sim.git
  2. Install NPM packages
    npm install

(back to top)

Roadmap

  • Game board
    • Tracks each line
    • Check for losing triangles
    • Add new moves (including player number)
    • Reset the board
    • Provide available moves
  • Bot
    • Random move
    • Move that does not result in a loss
    • Efficient move
  • Game Director
    • Track current player
    • Controls front-end module
    • Controls game board
    • Controls bot
  • Front-end module for UI operations

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

LinkedIn
Project Link: https://github.com/daniel-citrus/Sim

(back to top)