These are chat archives for Lepton5628/3x3-movement

27th
Sep 2015
ElektraEschalier
@ElektraEschalier
Sep 27 2015 02:55
Created repos: Lepton & Gamma
ElektraEschalier
@ElektraEschalier
Sep 27 2015 03:01

Lepton is the main server, and Gamma is the engine. Note: DO NOT DOWNLOAD Gamma DIRECTLY.

Once you have Lepton, open Command Prompt, go to Lepton, and then use:

npm install

This will download Gamma and load it into the node_modules folder.

Before running:

npm build

OR:

node build.js

To run:

npm start

OR:

node index.js
ElektraEschalier
@ElektraEschalier
Sep 27 2015 03:33

Challenges

Challenges is now here or http://lepton5628.github.io/challenges.
Still having problems with it though... sizing issues.
hopeofsolace
@hopeofsolace
Sep 27 2015 18:51
i will be able to work on the challenges soon and could you explaine what gamma and lepton do?
ElektraEschalier
@ElektraEschalier
Sep 27 2015 19:19
Lepton is the game server, which handles the brunt of the work, and serves up the client.
Gamma is the game engine. It works in the backend. Has maps, mechanics, etc. Basically systems.
hopeofsolace
@hopeofsolace
Sep 27 2015 19:20
i see.oh btw currently testing my first solution for chal1
ElektraEschalier
@ElektraEschalier
Sep 27 2015 19:20
By the way, sometime plz open cmd prompt, type node -v & send result. Thx.
hopeofsolace
@hopeofsolace
Sep 27 2015 19:21
one sec
here is the result v0.12.7
could you explain this code:Math.floor((Math.random() * 100) + 1);
ElektraEschalier
@ElektraEschalier
Sep 27 2015 19:28
Math.random() returns a number between 0 and 1. Possible values such as: 0.575845, 0.566, 0.44, 1, etc.
Math.random() * 100 is multiplying the result of Math.random() by 100. So 0.575845 -> 57.5845. The + 1 is to make sure that the value that comes out is > 0.
Math.floor() is removing everything after the decimal point. So 57.5845 -> 57.
hopeofsolace
@hopeofsolace
Sep 27 2015 19:29
yes i understood it!
will now get to work applying that to the challenge
ElektraEschalier
@ElektraEschalier
Sep 27 2015 19:30
Current version of NodeJS is: v4.1.1. You might want to update. If you do, http://nodejs.org has downloads.
hopeofsolace
@hopeofsolace
Sep 27 2015 19:31
thanks
updated
ElektraEschalier
@ElektraEschalier
Sep 27 2015 19:35
Alright. Moved challenges to http://lepton5628.github.io/challenges.
hopeofsolace
@hopeofsolace
Sep 27 2015 19:42
going to take quick break