-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
67 lines (62 loc) · 1.71 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"use strict";
/* The purpose of this repo is to contain the project for a JS
* powered terminal game that the user can play on the terminal.
*
* The goal is to one day be able to publish this game on a website
* so that other can play this game on a website instead of pulling
* up the game on the terminal.
*
* */
/* This is the map that will be following the
* **********
* *-*-*-*---
* *-----*-**
* *-**-**--*
* *-*--*--**
* *-*-*--***
* **********
*
* Matrix:
* [0,0,0,0,0,0,0,0,0,0]
* [0,1,0,1,0,1,0,1,1,1]
* [0,1,1,1,1,1,0,1,0,0]
* [0,1,0,0,1,0,0,1,1,0]
* [0,1,0,1,1,0,1,1,0,0]
* [0,1,0,1,0,1,1,0,0,0]
* [0,0,0,0,0,0,0,0,0,]
* */
/* This project will begin to use the Object-Oriented concepts
* and will try to use classes and develop quicker with a matrix
* input by the user.
* Using this approach, it should be quicker to develop,
* however the largest pro is that this project will be scaleable
* for larger matrix.
*
* The goal is to one day have the user input their own map
* that the program will automatically make itself.
*
* TODO:
* 1. Create a class for the maze
* 2. Create a class for the controllers of the game
* 3. Create a class for the game
* 4. Organize the files in a base directory
*
*
* Once I figure out the core concepts and functionailty of
* the program, things that would be nice to add:
* !---TODO:
* 1. Figure out different ways for the user to add a map that they can play.
* 2. Figure out standard output for things to do
*
* */
// Imports
import Game from "./src/Game.js";
const main = function () {
// !TODO:
// Add function the detemine the type of input by the user
// - Binary
// - Linear
let game = new Game();
game.start();
};
main();