Skip to content

Code Wars inspired Multiplayer Code Challenges - first to solve wins!

Notifications You must be signed in to change notification settings

gtormiston/battlecodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battlecodes

What is it?

Battlecodes is a real-time multiplayer game inspired by Codewars, where players race against each other to solve code challenges.

Players can either host a new game and choose the challenge, or they can join an existing 'open' game. The first player to submit a correct solution wins the round!

Screenshots

Lobby and challenge selection Lobby and challenge selection

Syntax highlighting during gameplay Syntax highlighting during gameplay

Technologies Used

  • Express.js
  • Socket.io
  • Sass
  • Zombie.js
  • Mocha / Chai / Sinon

Suggested Improvements

  • User accounts
  • Timer to track best times
  • Leaderboard
  • Time penalty for incorrect submissions
  • More than 2 players in a game
  • Cheat detection
  • Host public or private games
  • League / reviews

Getting Started

Prerequisites

Set Up

  1. Clone this repository
  2. cd into it
  3. Run npm install

Server

  1. Run npm start to start the server locally
  2. Visit http:https://localhost:3000

Testing

  1. Run npm test

User Stories

As a coding student
So I can decide what to improve on
I would like to pick a coding challenge
As a coding student
So I can have fun while learning to code
I want to invite a friend to play
As a coding student
So I can play a fair game
I want to start the game in sync with my opponent
As a coding student
So I can play a fair game
I want instructions to only appear when the game starts
As a coding student
So I can focus on the game
I want to write code in the browser
As a coding student
So I can check my solution
I want to submit my solution and see the result
As a coding student
So I can win a game
I want a winner declared when a correct solution is submitted
As a coding student
So I can correct my solution
I want submit a solution to see details of tests results if any failed
As a coding student
So I can play a game with suspense
I want to see my opponent’s progress

About

Code Wars inspired Multiplayer Code Challenges - first to solve wins!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published