GithubHelp home page GithubHelp logo

dubwub / f2016-upe-ai Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.22 MB

UPE AI Competition for the Fall 2016 Semester

License: Other

JavaScript 40.59% HTML 9.67% CSS 23.41% Shell 0.07% Python 0.76% C++ 25.13% Makefile 0.01% Go 0.37%

f2016-upe-ai's Introduction

#F2016 UPE AI Competition

##Setup ###Installation

  • The server is built from the MEAN Stack (https://github.com/meanjs/mean), you should install all of its dependencies too (Ruby, Grunt, Bower)
  • If you're installing on Windows, you may need to install the dependencies for node-gyp (https://github.com/nodejs/node-gyp), like Visual Studio and Build Tools
  • If you're installing on Linux, make sure you do NOT use sudo apt-get nodejs, because that node version is EXTREMELY out of date. There are many guides online for building nodejs in the correct way.
  • Make sure Node.JS, MongoDB is installed on your computer, this will by default install npm
  • Navigate to the root directory of this (clone, fork, whatever), and then run npm install

###Running

  • Go to mongo/bin (installation folder), then run mongod --dbpath (this project root)/data
  • Run the command "grunt" in the root directory of the server
  • Then open a browser and go to localhost:3000

###TESTING

  • Run the server (see above)
  • Open two terminals in the /sample_AIs/ directory, and then run two versions of the python AIs
  • Go to the Games List page (normally, by going to localhost:3000 etc), then scroll to the bottom of the list and look at the game
  • There should be a submitted move and everything!

###Folder Structure

  • /modules/games/ <-- all relevant classes, views and routing for the game module (includes matchmaking)

###Routes

  • localhost <-- default landing page
  • /api/games/search <-- python27.py will POST here, and this symbolizes looking for a game (run another instance in another terminal and it should find and start the game)
  • /api/games/submit/ <-- for submission of moves

##Helpful Reading

##Generating a mailing list

  • Run mongo (small terminal that allows you to look at the mongodb directly), and type use ai-comp
  • Run the command: results = []
  • Then: db.users.find().forEach(function(u) { results.push(u.email); } )
  • Then: results

##Full Rules/Documentation See aicomp.io/docs for the full documentation!

f2016-upe-ai's People

Contributors

dubwub avatar

Stargazers

 avatar Chase Riley Roberts avatar

Watchers

Tyler Leite avatar  avatar

f2016-upe-ai's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.