Giter VIP home page Giter VIP logo

java_2021_hackathon's Introduction

Hackathon!

Card Games Hackathon!

Purpose: To create a card game using Java. It can be any game! Black Jack, Texas Hold’em, Pai gow, or anything you could think of! Here are some ideas for you.

Level 1: Who is bigger?

  • Computer and player both select a random card from a deck. If your card is bigger than the other one, you win. Otherwise, you lose.
  • Requirements: o Each card can be selected ONCE only. o If the cards have the same value, the suit will decide who one is bigger.  i.e. Spade 4 is bigger than Heart 4. o Bonus: You can make the game for more than 1 player. o Bonus: Instead of winning from a bigger card, you can guess if your card is bigger or smaller than the other card. And you win if your guess is right.

Level 2: Black Jack

  • Create a game for 2 players to play Black Jack.
  • Each player is given 2 random cards. If the total value of 2 cards is less than 21, they have the option to hit (draw one more random card) OR to stay (not to draw one more card). If the total value of the cards is greater than 21, it busted and lose. The player can hit more than once.
  • Values of J, Q, K are 10. Value of Ace is either 1 or 11 depending your own preference.
  • A player can win, lose or tie.
  • Requirements: o Each card can be drawn ONCE only. o Bonus: You can make the game to Computer Vs Player. For a computer, if the total value is less than 17, they have to hit. o Bonus: You could play 10 rounds with a base of 20 points and bet it like the real game!

Useful resources: To make the card more fun to play, you could also show the cards as Unicode or in ascii. https://en.wikipedia.org/wiki/Playing_cards_in_Unicode : To show the cards in Unicode. https://stackoverflow.com/questions/36829134/printing-a-poker-hand-using-ascii-horizontal-in-java : To show the cards in ascii. https://codereview.stackexchange.com/questions/82103/ascii-fication-of-playing-cards : This is the ascii in Python but this site explains very clearly how the ascii shows the playing cards in terminal.

a deck of cards

java_2021_hackathon's People

Contributors

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