Giter Site home page Giter Site logo

jeopardy's Introduction

jeopardy

Dedication

This project is dedicated to Mr. William D. Dye, my father and one of the best armchair Jeopardy! players I have ever known.

Installing

$ make install

Running the server

$ jeopardyd [-s <server_ip>] [-p <server_port>]

or:

$ python3.7 jeopardy/server.py [-s <server_ip>] [-p <server_port>]

Options

  • -s, --server-address - the IP address on which to run the server
  • -p, --port - the port on which to run the server

Running the client

$ jeopardy -n <nick> -s <server_address> [-c <client_ip>] [-p <client_port>] [-d]

or:

$ python3.7 -m jeopardy -n <nick> -s <server_address> [-c <client_ip>] [-p <client_port>] [-d]

or:

$ python3.7 jeopardy/main.py -n <nick> -s <server_address> [-c <client_ip>] [-p <client_port>] [-d]

Options

  • -n, --nickname - the nickname to use (must be unique)
  • -s, --server-address - the address and port of the remote server to connect to
  • -c, --client-address - the IP address for the server to connect to in order to send events (defaults to the external IP address of the host running the client)
  • -p, --client-port - the port for the server to connect to in order to send events
  • -d, --dark-mode - use the dark theme in the GUI

You only need to specify -n, -s, and -p once, or if you want to change them. Otherwise, the previously-used value will be used on the next invocation of the program.

jeopardy's People

Contributors

will2dye4 avatar

Stargazers

Drew Nall avatar

Watchers

James Cloos avatar  avatar

Forkers

rwils83

jeopardy's Issues

Enhance answer parsing

  • "alone/a loan"
    • "alone or a loan"
    • "alone and a loan"
    • "alone & a loan"
    • "a loan or alone"
    • "a loan and alone"
    • "a loan & alone"
  • "one of: apples, oranges, pears"
    • "apples"
    • "oranges"
    • "pears"
  • etc...

Show images inline

Instead of ignoring image links, parse them out and display them inline.

Investigate implementing a "Daily Double" feature

If a question is worth $0, let the last person to answer a question correctly make a wager and have exclusive rights to answer the question.

Optional bonus feature: Allow other players to answer privately while the selected player is wagering/answering. If the selected player gets it wrong, the first player to submit the correct answer gets $X (for some value of X).

Fix issues with answer parsing/checking

  • strip leading/trailing quotes
  • strip leading/trailing whitespace
  • lowercase everything
  • replace special characters (e.g., "é") with standard versions (e.g., "e")

Fix HTML parsing of answers

Currently, a regex is being used to find <a> tags inside the answers and remove them. However, a nested <b> or <i> tag (or any other tag) inside of the <a> tag breaks the parsing. Either use a proper HTML parser (such as beautifulsoup) or, at the very least, figure out a way to handle the case mentioned above.

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.