File structure explained - Vogeltak/reversi GitHub Wiki
On this page, the file structure will be explained.
In this directory all files concerning the web game will be stored. This index file functions as an introduction to our project and a portal to the playgrounds of our game. This index file contains the layout for the board and game.
Here will all stylesheets be located. Every index file will refer to stylesheets from this directory for its styles. This stylesheet ensures that all pages are resized correctly for different devices with different resolutions and screen sizes. Custom elements which need responsiveness are supplied of that via this file. Only include this file in an index file if it is needed for it to scale elements on the page properly. This stylesheet includes all the basic styles for elements and classes defined in html files. This should be included in every html page. Page specific styles for the home page. Page specific styles for the game page.
Here will all the JavaScript scripts be located. Every html file that needs a specific functionality should refer to the corresponding JS file in this directory. This script sets up and maintains the game. This is a class for tiles. Objects of this class are stored in the board state array. This will be an abstract player class used for the two different kind of players. This implements Player.js and adds functionality for the human player. This implements Player.js and adds functionality for the computer player. An AI will be implemented in this file or in different files, if it will consist of a lot of lines.
In this directory all files concerning the web game will be stored. This index file functions as an introduction to our project and a portal to the playgrounds of our game. This index file contains the layout for the board and game.
Here will all stylesheets be located. Every index file will refer to stylesheets from this directory for its styles. This stylesheet ensures that all pages are resized correctly for different devices with different resolutions and screen sizes. Custom elements which need responsiveness are supplied of that via this file. Only include this file in an index file if it is needed for it to scale elements on the page properly. This stylesheet includes all the basic styles for elements and classes defined in html files. This should be included in every html page. Page specific styles for the home page. Page specific styles for the game page.
Here will all the JavaScript scripts be located. Every html file that needs a specific functionality should refer to the corresponding JS file in this directory. This script sets up and maintains the game. This is a class for tiles. Objects of this class are stored in the board state array. This will be an abstract player class used for the two different kind of players. This implements Player.js and adds functionality for the human player. This implements Player.js and adds functionality for the computer player. An AI will be implemented in this file or in different files, if it will consist of a lot of lines.