GithubHelp home page GithubHelp logo

game-room's Introduction

Digital Game Room

The digital game room is mostly a couple of technical excercises trying to do different cool things in react.

On the home page you can sign up as a new user. There isn't a password and it's only a local user, but your users and their scores will be stored in the db.json and will persist. The home page is also where you select the active user.

You can play tic-tac-toe on two different difficulty settings. I believe the logic for the "Hard" setting is impossible to beat. The logic is mostly the same as Newell and Simon's 1972 tic-tac-toe program, but a small piece of that logic is hard coded in such a way that there may be a way to exploit it. Don't let the computer's incessant taunting get to you.

You can also play trivia, which uses the trivia API at https://the-trivia-api.com/docs/v2/ for questions. Each trivia session is 10 questions long.

Whenever you finish a game of tic-tac-toe or a session of trivia that information is automatically sent to the local database, and you can see stats on each users performance on the scoreboard page.

Running the Program

In order run the program, navigate to the project folder in CLI and run

npm install
npm run dev

and then in another terminal (also in the project folder) run:

json-server --watch db.json

game-room's People

Contributors

sbs1997 avatar

Watchers

 avatar

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.