Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.69 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.69 KB

BlackRussian

Teamwork repo for JS APPS course at Telerik Academy 2015

How to load the dependencies

  • Install bower: npm install -g bower
  • Install bower dependencies (bower.json) Navigate to the project root dir in the console and write: bower install
  • Install node.js dependencies (package.json) Navigate to the project root dir in the console and write: npm install

How to run the app

  • The app must be started from a local web server. To do so navigate in the console to the root dir of the project and enter: node node-modules/http-server/bin/http-server
  • Don`t close the console, minimize it
  • Open a browser and enter in the address: localhost:8080
  • IMPORTANT: after each change to a .js file you MUST clear the browser cache or the changes won`t be displayed (because of asynchronous module loading)

How to play

The game starts with 10 tiles with letters. Put tiles on the board with mouse click. Click on tile will select it. Clicking on an empty square on the board will put the tile there. Or if the same tile is clicked again it will be deselected. To submit the word written ob the board, click on submit button. To skip a turn simply click submit without writing anything on the board. Only the current players name and tiles should be shown per turn. All of the players scores should be shown always.

Current code structure

###gameManager.cs holds the current game state: players points, boards state etc.

###gameLogic.cs contains the entire game logic - whos turn is next, is the board state valid according to the rules, players score calculation etc.

###uiProvider.js this will be the portal for the entire front-end logic - requesting user input, visualizing game state ect.