Bhanditz / programmer-games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JetBrains team project

The project LearnElm_1:

2 buttons with + and -, changing the number N in between 3 and 12. On mouse click on screen a N-polygon is drawn with the center in click and random radius between 20 and 100. There are three squares user can click on to select one of predefined colors.

The project LearnElm_2 :

The same as LearnElm_1, but implemented with SVG (plus : main panel in the center, add stroke for figures)

The project Turing:

Implementation of Turing machine. Use function "runMachine" in Main.elm, give it machine and input word. It will print tape and final state for you.

Run the project 1:

Run the following commands in your terminal to download this project and start a server that compiles them for you:

git clone https://github.com/JetBrains/programmer-games.git 

cd programmer-games/LearnElm_1

elm-reactor

Now go to http://localhost:8000/, click src and then choose Main.elm file.

Run the project 2:

Run the following commands in your terminal to download this project and start a server that compiles them for you:

git clone https://github.com/JetBrains/programmer-games.git                 
                                                                                 
cd programmer-games/LearnElm_2_                                              

elm-reactor                                                                 

Now go to http://localhost:8000/, click src and then choose Main.elm file.

Run the project 3:

Run the following commands in your terminal to download this project and start a server that compiles them for you:

git clone https://github.com/JetBrains/programmer-games.git

cd programmer-games/Turing    

elm-reactor 

Now go to http://localhost:8000/, click src and then choose Main.elm file.

For running tests from Turing/test:

Run the following commands in your terminal:

git clone https://github.com/JetBrains/programmer-games.git

cd programmer-games/Turing

elm-make test/TestRunner.elm --output test.js

Agree to upgrade plan (install some packages)

node test.js

Then you will see the results of the tests running.


About

License:Apache License 2.0


Languages

Language:Elm 100.0%