Giter VIP home page Giter VIP logo

python_3-computer-quizz's Introduction

Python3 Computer Quizz

The Python3 Computer Quizz is a Python terminal game that runs in Code Institutes mock terminal on Heroku.

Players are provided with questions associated to computers.

You can find the live version of my project here!

This is an image

How to play

The Python3 Computer Quizz is based on the traditional quiz and uses an answer/option model where every answer has 3 options to chose from. You can read about how quizzes came about and how the game works on Wikipedia.

Features

Existing Features

  • First the quiz wishes the player welcome and askes them if they are ready to play.

This is an image

  • If player choses to play, they are asked to enter their name. If no name is entered the name 'Player' is used.

This is an image

  • If player choses not to play, they still need to enter n to exit game, if not the question will be repeted until they do:

This is an image

  • The Python3 Computer Quizz, contains 5 questions with 3 options as answers to choose from, numbered as a) b) or c). When correct answer is entered, 1 point is added to the score and the game moves on to the next question.

This is an image

  • If incorrect answer is entered, 1 point is deducted from the score,

This is an image

  • and if answer is not in the options given, the response is:

This is an image



  • When Python3 Computer Quizz is completed, the game thanks the player for participating and prints final score to the screen.

This is an image



Future Improvements

  • Add more questions to be generated at random
  • Add levels of difficulty for player to chose from
  • Improved GUI


# Testing The **Python3 Computer Quizz** -project has been manually tested by passing the code through: * PEP8 validator result (shown below)

This is an image



  • During the process the code has been checked in the github terminal and issues have been dealt with when they've shown up.
  • The code has been tested multiple times in PEP8 and issues has been corrected
  • Code has been manually tested in the terminal trough the whole process


Language Used

  • Python


Bugs


Solved Bugs

  • I did have problems with NameError ,name 'score' undefined, because I'd missed passing score to the end_game() function wich resulted in final score = 0.

  • I had difficulties deploying to Heroku. I found that the reason was that I was missing the package.json folder. I solved the problem by opening a new workspace in github and copied my code to it. This is the link to my faulty repository!


Remaining Bugs

  • No known bugs remaining


Deploment

  • This project was deployed using Code Instite's mock terminal for Heroku via the GitHub Terminal by using the git push heroku main code.


  • The final code can be found on GitHub Here!


Credits & Content

  • Code Institute For deployement and tutorials
  • freepubquiz.co.uk For quiz questions
  • Wikipedia, for history and details about the Quiz game
  • Spencer Barriball, My mentor

python_3-computer-quizz's People

Contributors

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