Skip to content

Melicias/blackjack

Repository files navigation

Blackjack Game

This is the blackjack game made by Francisco Melicias

Getting Started

Prerequisites

You will need to run one of the 2 databases
You can find the 2 databases in the folder db_blackjack
bd_with_data_Melicias.sql -> database with data
bd_without_data_Melicias.sql -> database without data

Users_Passwords.txt            -> file with all users and admin passwords

How does the website works

Without login

Home -> show a page that shows how does the game works
JackPot 10 -> if there is any jackpots it shows the 10 biggest
Sign up / Login -> To sign up or login
All fields are "protected" with html and php checks all fields
php checks nulls, sizes, if is an email
MISSING: check date of birth if its old enough

With login

Home -> show a page that shows how does the game works
Play -> Place to play the game -> the Deck has 5 decks inside and when it gets to 2 decks, it will shuffle 5 decks again

  • BET -> when the bet is valid (bet value > 0 and bet value < 10000) it withdraws one card to the user, other to the dealer and another one to the user

  • STAND -> dealers withdraws card until he reaches 17

  • HIT -> withdraw one card to the user

  • DOUBLE -> If user has money, it doubles user bet and giver only one more card to the user and them dealer withdraw cards until he reaches 17

  • SURRENDER -> User loses the game but keeps half the bet value

    MISSING: when user is playing dont let user logout or change page
    Personal area -> Where you can check your last 10 moviments and you can see and add funds
    JackPot 10 -> if there is any jackpots it shows the 10 biggest AND if shows user biggest win
    Logout -> Session destroy

Admin

Users -> Shows a page where you can block/unblock users
Admins -> Shows a page where you can block/unblock admins -> only SuperAdmin can use this
Cange Password -> Shows a page where Admin can change his password
Logout -> Logout admin

All pages

Without login

127.0.0.1/blackjack/webapp/
127.0.0.1/blackjack/webapp/base/play
127.0.0.1/blackjack/webapp/base/personalArea
127.0.0.1/blackjack/webapp/base/jackpot10

With login

127.0.0.1/blackjack/webapp/
127.0.0.1/blackjack/webapp/base/jackpot10
127.0.0.1/blackjack/webapp/base/regist_login

Admin

127.0.0.1/blackjack/webapp/admin
127.0.0.1/blackjack/webapp/admin/login
127.0.0.1/blackjack/webapp/admin/users
127.0.0.1/blackjack/webapp/admin/admins
127.0.0.1/blackjack/webapp/admin/changePassword

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published