Node Js Blackjack
Hey, this is something that I have been working on for a little while now and I wanted to share it with you guys and see how you like it!! Please comment on anything that I could do better. Thanks P.S stake means bet and it cant be higher than the bank.
I am a resilient devloper looking to find a role that challenges my skills, fosters my professional growth, and allows me to work in a diverse range of disciplines. I’m a fast learner and am perfect for any role that crosses a variety of domains.
Jane Quinn
NodeJS API Server (Or skip to python if using python) This section will be dedicated to developing our blackjack client API. The purpose of this API is threefold: to interface between the client and requests for web resources (linked stylesheets/scripts, serving webpages and static assets), interfacing between the client and the AWS RDS. Movie List is a command line tool written in Node.js that uses OAuth2.0 to write data about a given film to a users google spreadsheet. Blackjack A Blackjack game developed for iOS using swift and SpriteKit.
Name | : | Jane Quinn |
Phone | : | +353 892490502 |
: | jane.h.quinn@gmail.com | |
: | Jane Quinn | |
Github | : | CodeWriterWriter |
Services
I'm skilled at and available for work in a wide range of fields related to Software Development and Media Content Creation.
A
Game Development
I'm a graduate of a Game Development course with experience in C++, C#, Java, Android, iOs, Unreal, and Unity.
B
Writing
I have a passion for screenwriting, and have previously been nominated for screenwriting awards for my work.
C
Software Development
I have experience developing for open source software, and implementing new functionalities on software used as sales tools. I have experience in languages such as Node.js, Java, C#, C++, Swift, and Ruby.
D
Video Editing
I'm a capable editor, with experience with Premiere Pro, along with After Effects, Photoshop, InDesign, and Lightroom.
Employment
I have experience working in Software Development and Customer Service roles. I also have experience working as a customer facing representative, along with team leader and organisational skills.
May 2012 - December 2012
Sales Assistant
ComixStop
• Operated the cash register;
• Handled sales and returns;
• Answered customer queries on product lines;
• Maintaining appearance of the store;
• Taught customers how to play certain games on sale to encourage sale of ancillary products;January 2016 - September 2016
Software Development Intern
Nearform
• Development and implementation of modules for open source projects;
• Maintaining existing open source repositories;
• Attending events as a company representative;
• Bug Testing and Fixing;
September 2016 - May 2017
Head of Board Game Society
Waterford Institute of Technology
• Attending bi-weekly meetings;
• Taking Care of Society property;
• Handling society funds for asset acquisition;
• Organizing Trips to Conventions;September 2017 - November 2018
Software Developer
Tickets.ie
• Developing a new innovative sales platform from the ground up;
• Developing front end from wireframes that are automated testing compliant;
• Designing schema and api for database operations;
• Writing documentation for internal use;November 2018 - February 2019
Web Developer
Banach Technology
• Developing a new website allowing clients to perform tasks otherwise performed by support team;
• Integrate websites with Azure Active Directory user services;
• Perform support tasks on large profile events;
• Contributing to internal wikis, adding subjects from new skill domains;November 2018 - February 2019
Web Developer
Banach Technology
• Developing a new website allowing clients to perform tasks otherwise performed by support team;
• Integrate websites with Azure Active Directory user services;
• Perform support tasks on large profile events;
• Contributing to internal wikis, adding subjects from new skill domains;February 2019 - May 2019
Web Developer
Sportdec
• Developing a wallet application for users to withdraw funds
• Deployed web applications for end users
• Introduced new inline CSS framework to the company improving productivity
• Involved in technical and design meetings for planning of new customer facing applicationFebruary 2019 - Present
LiveOps Systems Engineer
Digit Games
• Developing Front End Tooling Platforms for Internal Content Creators
• Worked on general bug fixing and UX improvements
• Led development on refactoring efforts to improve productivity
• Tech Used, Angular 1, Bootstrap, Git, GitLab
Education
Node Js Blackjack Server
My education has been focused on Mathematics, Software and Game Development, and Sciences.
2007-2013
Leaving Certificate
De La Salle College
· 555 points total.
· 5 Honors including an A1 in Math.
· Subjects Studied: Math, English, Irish, Economics, Physics, Applied Math, Biology.2013 - 2017
B.Sc(Hons) Entertainment Systems
Waterford Institute of Technology
· Computer Science degree with a specialisation in Game Development
Skills
I've a wide diversity of skills suited for Game and Software Development, along with video content creation.
SeatFair
Developed while working with Tickets.ie, SeatFair is a revolutionary demand based pricing first party ticket sales auction platform. It was developed in Node.Js, Anuglar, Bootstrap for the frontend, and a .NET C# API, with a MySQL database, deployed with Azure.
Batman V Superman: Intro Edit
Developed as part of my final year project, this short film is an edit comprised of clips from Man of Steel, and Batman V Superman: Dawn of Justice. Audio mixing was done using source audio and the official soundtracks of the respective films. The edit was accomplished in Adobe Premiere.
Synchofilm
Developed as part of my final year project, Synchrofilm is a proof of concept web service allowing for peer to peer streaming of videos. It was written in Node.JS and utilises a custom WebRTC server for peer to peer connections.
Bunny Hop
'Bunny Hop' is a side scrolling platform game developed in Java for PC and Android using the LibGDX framework. Scenes were created dynamically using pixels from premade png files.
Nomad
Nomad is a romance short screenplay. It was nominated for the Best Short Screenplay Award in the Waterford Film Festival 2016.
Movie List
Movie List is a command line tool written in Node.js that uses OAuth2.0 to write data about a given film to a users google spreadsheet.
Blackjack
A Blackjack game developed for iOS using swift and SpriteKit.
Defender
Defender was developed in C++ with OpenGL on PSP dev kits to function on linux and PSP and reads level data from .dat files at runtime.
Breakout
Breakout was developed in C++ with OpenGL on PSP dev kits to function on linux and PSP.
Transition
'Transition' is a Pac-man style game made in Game Maker with the aesthetic of gender dysphoria.
engine-blackjack - implement blackjack game into your software.
___Available game parameters
There are many possible configuration. We are implementing Standard and Custom optionsso that you can easily combine flags to create games according with your skill/needs.
Standard variations
- number of
decks
, default is1
standOnSoft17
, turn On/Off the 'Soft 17' rule, defaulttrue
double
, ability to double after deal, defaultany
none
not allowedany
any allowed9or10
9or10or11
9thru15
split
, On/Off the possibility to split after deal, defaulttrue
doubleAfterSplit
, On/Off the possibility to double after split (split and double must be 'on'), defaulttrue
surrender
, on/off the ability to surrender after deal, defaulttrue
insurance
, on/off the ability of ensuring a hand, defaulttrue
Custom variations
There are many variations of this game and I really do not know them all, but if you ask me I will add them.Here a list of direct (and maybe exotic) requests:
showdownAfterAceSplit
, after the deal and if player receives 2 aces and a split is called, a card is dealt on each side and showdown phase is initialized (the game ends) defaulttrue
but it depends onsplit
.
Install
Node Js Blackjack Game
If you are using npm, to get the last version:
yarn add engine-blackjack
npm install engine-blackjack
I'm currently publishing the master branch into NPM until I get the first tag.Ideally, only tagged commits will be uploaded as NPM after that moment.
NOTE: Master branch is under development. Be sure to 'ONLY' use tagged version for your production.
Quick Start
Once obtained the library just requireGame
and actions
.
At this point you can initialize a new game by calling the Game constructor
.
Creating a new game
In this cases, no state is passed to the constructor:
- the default state is loaded into game
- game is ready to
dispatch
actions to alter the state
Getting current state
At any moment we can require the current state of the game by calling the getState()
.
The content of the state and its schema depends on the stage of the game. In this casewe initialized the game without any precedent state, so we will receive something like this:
For the moment the only thing we should note is that the fieldstage
tells us 'game is ready'.
Dispatching actions
The only way to mutate the state of the game is to dispatch actions. Some actions are required by the 'user',some other actions are dispatched by the engine to 'complete' the game.
NOTE: In a real game, players and dealer are allowed to 'do actions'. The engine will 'impersonate the dealer' at some point, depending on the last action and the state.
Project Structure
Guidelines that I follow
Inspired by projects done by people I consider smart, like Flux or Redux,and motivated by the desire to introduce the functional paradigm in my work day:
- platform agnostic (if you can run Node, you are ok. Node can run everywhere)
- zero-dependencies (only dev-dependencies)
- TDD, break every single game action to be testable
- Implement everything that makes sense (and described in WikipediA)
Everything you need to hack is of course inside /src
or /test
andnpm test
does what you expect (plus a lot of console.log for the moment)
Actions
see the /src/actions.js
Engine exposes actions, once invoked, the state of the game is changed.The following list represent the actions that can be dispatched by from the public API.
- restore
- deal
- insurance
- double
- split
- hit
- stand
And, those are actions that are internally called in determinate stages by the engine itself.
- showdown
- dealerHit
- invalid
Stages
See the /src/game.js
The stage represent a moment in the game. The stage is directly related with the action allowed in that particular moment.
Current available stages are:
- ready
- player-turn-left
- player-turn-right (optional)
- showdown
- dealer-turn
- done
Logic
The game logic is implemented into /src/engine.js
. There some more methods, strictly related to the tests and for the moment are not tested (who test the test is not yet solved).There is a specific design limitation currently in the code. Currently it support only 2 position, user can 'split' but it is not possible at the moment to create more complex variants of the game.
NOTE: If you are interested in the random components, check out the shuffle()
function.
Test
Run tests by calling yarn test
or npm test
You can also write specific test cases using this syntax. For more details have a look at game.spec.js
Jest will care about the following tasks:
- create a new game
- initialize it by injecting
♠10 ♦1 ♥5 ♣6 ♠11 ♦10
at the and of the deck - run the desired
restore
,deal
,split
and finallystandR
(stand on right) - return the current state
- compare if
stage
is 'done' at the end
If you specify the finalWin
the test will compare the final winning.
Side Bets
Side bets are part of the 'multi-game strategy'. They are returned to the client as 'available bets' and they can be sets in the deal()
payload.Engine will calculate the side bet result during the deal()
engine-blackjackCopyright (C) 2016 Marco Casula
This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.
Node Js Blackjack Tool
You should have received a copy of the GNU General Public License alongwith this program; if not, write to the Free Software Foundation, Inc.,51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Node Js Blackjack Tutorial
Thanks @webpty for logos