Skip to content

beckyjn/Blackjack_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack (1-week group project)

Becky Nielsen, Jenn Archibald, Jon Zarecki and Charlie Walker

Group project created following 3 weeks of JavaScript lessons. Created a full stack JavaScript application Blackjack game, with an Express server and MongoDB database.

Brief

Create a browser game based on an existing card or dice game. Model and test the game logic and then display it in the browser for a user to interact with.

Rules

The project must be built using only:

  • HTML / CSS
  • Javascript
  • Express
  • MongoDB

It must NOT use:

  • Any Object Relational Mapper (e.g. ActiveRecord)
  • Jquery
  • Any pre-built CSS libraries, such as Bootstrap.
  • Authentication. Assume that the user already has secure access to the app.

MVP

+ Two cards can be dealt to both the dealer and the player
+ Hands can be totalled
+ The highest hand wins and a winner is declared 
+ Game displays in browser

Extensions

+ A player can draw cards.
+ The model declares “Bust” if the hand is over 21.
+ A player draws multiple cards until bust or “Hit” is clicked.
+ Dealer takes a turn. Will draw until at least 17 or is bust.
+ Have a purse available to the player.
+ Allow the player to place bets.
+ Have the rules listed.
+ Bets and hands are totalled.
+ Buttons disabled until the appropriate point.

Next Steps - what we would do with more time

- Remember a player and recall their purse.
- Allow for multiple players.
- Allow players to split their hand.
- Allow player to 'cash-out'.

Getting Started

These instructions will get the project up and running on your local machine.

Installing

Install dependencies:

npm install

Run a mongoDB server (leave running in a terminal window):

mongod

Seed the database:

mongo < server/db/seeds.js

Run webpack (leave running in a terminal window):

npm run build

Run express (leave running in a terminal window):

npm run server:dev

Using

The application is running on port 3000 so visit http://localhost:3000/.

Screenshot Examples

Player Decides Bet Amount

image

Player Turn

image

Player Wins

Screen Shot 2019-04-26 at 14 10 39

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •