ksouthwood / blackjack Goto Github PK
View Code? Open in Web Editor NEWMulti-player blackjack program written in C using the ncurses library.
License: MIT License
Multi-player blackjack program written in C using the ncurses library.
License: MIT License
Change how we access the players from an array style (using malloc to allocate memory) to a linked list which will make it easier to allow a player to quit (or remove them when they run out of money). Means lots of changes wherever we access the player.
In case a hand goes past 7 cards (should be very rare, but possible), write code to increase the size of the array to 10 cards (probably handled in deal_card()
), then dropped back down to 7 after the hand (probably in clear_hands()
).
This is the unfinished part of issue #4.
Update the build system from using hand built makefiles to using CMake. CMake works better with CLion and overall should be easier to maintain moving forward.
Insurance bets in the case of the dealer showing an Ace is not implemented. Need to update player struct to include field for this bet. Probably will wait until the player handling has been updated from an array to a linked list.
Implement function to split cards. Will have to check if player has only two cards and are of same value (10, J, Q and K all count as same). Update pointers as necessary, then deal new card to each hand.
Change how we store the cards in the hands. Use an array of structs instead of a linked list, using default size of 5. This will ease handling/checking the cards in various functions. On the few occasions where we need more than 5 cards we'll just double the array size temporarily and reset it after the hand is over.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.