Skip to content

ntindall/reference_games

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This is a substantially refactored fork of MWERT. The overall framework is the same, but we extract a lot of shared code into the sharedUtils directory, which is imported as a base by all of the individual experiments.

Local demo (from scratch)

  1. Git is a popular version control and source code management system. If you're new to git, you'll need to install the latest version by following the link for Mac or Windows and downloading the first option in the list. On Mac, this will give you a set of command-line tools (restart the terminal if the git command is still not found after installation). On Windows it will give you a shell to type commands into. For Linux users, more information can be found here.

  2. On Mac or Linux, use the Terminal to navigate to the location where you want to create your project, and enter

    git clone https://github.com/hawkrobe/reference_games.git
    

    at the command line to create a local copy of this repository. On Windows, run this command in the shell you installed in the previous step.

  3. Install node and npm (the node package manager) on your machine. Node.js sponsors an official download for all systems. For an advanced installation, there are good instructions here.

  4. Navigate into the repository you created. You should see a file called package.json, which contains the dependencies. To install these dependencies, enter npm install at the command line. This may take a few minutes.

  5. Finally, to run the experiment of your choice, navigate into the experiments directory and type node app.js <experimentName> at the command line. You should expect to see the following message:

    info  - socket.io started
        :: Express :: Listening on port 8888
    

    This means that you've successfully created a 'server' that can be accessed by copying and pasting

    http://localhost:8888/<experimentName>/index.html
    

    in one tab of your browser. To connect the other player in another tab for test purposes, open a new tab and use the same URL. Repeat as many times as you'd like!

About

Conventions in iterated reference games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.5%
  • HTML 42.9%
  • Jupyter Notebook 5.0%
  • CSS 3.1%
  • Python 0.6%
  • TeX 0.5%
  • R 0.4%