This repository contains the code for the ROPE Training System. Follow the instructions below to set up, run, and manage the system.
Video Demo for the training system: https://youtu.be/oJq2DYvw8l0
- Navigate to the
system
directory:cd ./system
- Install the necessary dependencies:
npm install
- Make a .env file and save your API keys and database credentials
OPENAI_API_KEY = "" MONGODB_URI=
- Start the development server:
npm run dev
Open your browser and access the application at: http://localhost:3333
To change the game in the ROPE Training System:
-
Locate the three buttons in the middle of the right edge of the page.
-
Click the third button, labeled
Change Game
. This will open a menu with the following options:- Select a Game: Choose an existing game from the list.
- Add Game: Upload files to add a new game.
- Delete Game: Remove an existing game.
-
You can either Select a Game to switch to an existing one or Add a Game by uploading the necessary files as described below.
To add a new game:
-
Select the Add Game option from the
Change Game
menu. -
Upload two required files:
- Game Code File: This file contains the game’s code logic.
- Game Data File: This file contains the game’s configuration or rules.
-
Example files are provided for reference:
system/lib/connect4/code.txt
(Game Code)system/lib/connect4/data.json
(Game Data)
These example files serve as templates to help you create your own games.