Skip to content

thameera/eulerjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EulerJS

Project Euler problems solved with Javascript

How to install and run

You need to have nodejs and npm installed.

Install grunt-cli if you haven't already.

npm install -g grunt-cli

Clone the repo and install dependencies.

git clone https://github.com/thameera/eulerjs.git
cd eulerjs
npm install

Run the solution to a specific problem:

grunt --p=<problem number>

Example:

grunt --p=2

Grunt will watch the Javascript files and run jshint and execute the solution at each update to the file.

If you prefer not to use grunt, you can run a specific solution with:

node main.js <problem number>

Creating a new solution from the template

grunt create --p=<problem number>

Running the tests

The tests for utils.js are written in Mocha. Install Mocha if you haven't already.

npm install -g mocha

Run the tests with:

mocha

About

Project Euler solutions in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published