Giter Club home page Giter Club logo

flask-riddle-game's Introduction

Riddle Me This Game

Description

In this project I created a simple website with the usual HTML, CSS, Javascript for the front end and Python and Flask for the back end.

The user is required to input their name to start the game, once in, you get asked 10 riddles. The maximum score per riddle is 3 points. You get 3 guesses per riddle. As you use up your guesses, 1 point is subtracted from that score so if you get one wrong guess you will get 2 points, two wrong guesses is 1 point and three wrong guesses is gameover. Once the user makes it to the end of the 10th riddle, their score will be added into the highscore file and if they make the top 10, they will be added to the highscore page.

The site was made using VS Code and Cloud 9 IDE and tested using Google Chrome, Mozilla Firefox and Internet Explorer. Several Android devices as well as an iPhone 6s were also used in the testing process. Google Chrome inspector was used to simulate several device screen sizes I could not personally get my hands on.

Mockups can be found in the /mockup/ folder in this Git repo.

The following is a table on the functionality of the site.

Page/Feature Description
Homepage Extremely simple, asks for a username in order to continue to the game
Welcome This is a small page welcoming the user with some rules
About Quick about page with little info
Highscore This is where the highscores are kept and viewed
Game The meat of the project, where all the fun happens
Gameover If you lose, you will be redirected to this page
Congratulations If you win, you will be redirected to this page

Below is a list of Libraries/Technologies that were used in the creation of this website:

  • Flask Micro Framework Flask provides an interface between Python and the web. It is used for all the logic on the site.
  • Bootstrap CSS Framework This framework was used throughout the website on all pages to facilitate a responsive design.
  • FontAwesome Icons Used for the Social Media icons and the Media button.

Deployment

The project is deployed on Heroku, you can reach it by going to this link

There is a slight problem with beginning a game that doesnt always happen. Once the user inputs a Username to play the game then clicks on the 'Play' button, there is a possibility of getting a server error. To get past this, press the back button on the browser and then click 'Play' again. Keep trying that until it works.

flask-riddle-game's People

Contributors

shaunza 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.