This app was created by Jon Peterson, Rachael Drennan, Justin Pyktel, and Lynne Rang.
This project is a Turing cross-pollination project between students of the frontend and backend programs, primarily focused on working with React and ActionCable websockets implementation on the frontend and Ruby on Rails and ActionCable websockets definition on the back-end.
This app is based on the CodeNames board game (along with an added Archer theme), and it allows four players to join a game from four different client machines and play against each other on two teams.
Youtube Link |
You can view this application live on Heroku at: playcodewords.com !
OR
If you'd like to clone this repository to your own local machine, run the following commands in your terminal:
git clone https://github.com/code-words/codewords-ui.git
git clone https://github.com/code-words/codewords-server.git
For the server repo, run the following commands:
bundle install
to install dependencies- Prepare database with
rails db:create
- Migrate with
rails db:migrate
- Seed with
rails db:seed
- Start the server with
rails s
Then for the ui repo, run the following commands:
npm install
to install dependencies- Start the server with
npm start
Then, go to http://localhost:3001/
to see the code running in the browser.
- Create a new game for your friends (or your three other browser tabs) to join!
- Click the invite code to copy it and send to others to join your existing game.
- Once all four players have joined, click "Continue" to start the game. You can see who is on what team in the scoreboards to each side of the game board.
- A player from each team will play the intel, and they will be able to see which cards are on their own team that they want their partner to guess.
- One of the intel players will be chosen to go first, and they can enter a hint and indicate how many cards on the table are relate to that hint. Be careful not to enter a word on the board, a word that relates to the other team's cards, or a word assigned to the assassin (instant death)!
- The guesser on that same team can now enter guesses until they choose a bystander (no points), choose a card of the opposite team's (point for the other team), their total guesses run out, or they choose the assassin card (game over!). In all cases other than ending the game with the assassin or all of one team's cards are guessed, it will then be the other team's turn.
- The first team to have all their words guessed wins!
Given the limited time frame, we created a high-fidelity prototype of the design on Figma to have a more detailed idea of where we wanted everything to go on the different pages.
We plan to keep working on this to add more features like the following:
- The option to choose a male or female agent image
- An ongoing record of all hints displayed for guessers
- The option to choose your team on game setup
- A inactivity timer, or timer that resctricts how long each turn is.
View the project specification on the Turing webpage for this project.
- ActiveCable websockets
- SCSS
- Flex-box
- Grid CSS
- UI design
- React
- React router
- Es6 classes
- Async JavaScript
- API fetches
- Enzyme & Jest testing
- Webpack
- NPM
- Ruby on Rails
- ActionCable websockets
- Relational Databases
- SQL
- Postgres
- User Authentication
All credit goes to Turing School of Software for providing the project specifications.