Welcome to Inbetweens the Card Game! Test your luck by placing bets on whether the next card will be "inbetween"
Inbetween is a card game I played as a teenager, it’s a betting game usually played for money. The game will be adapted for the purposes of this project. In later years as a teacher, I adapted games like this to help my students to understand the concept of probability and chance and they found it very enjoyable and learned quickly to ascertain high and low probabilities and the highs and lows of risk-taking.
A live version of the site can be found here: https://markyjay.github.io/inbetweens/
The game is aimed toward people who like to play card games and teachers who would like to use a game to help their students understand the concept of probability and chance variations through a simple game using cards. The game is simple, fast and designed to be engaging. The game involves gambling but offers no risk as it does not use money, the player converts one hundred credits in to 1000 credits to accomplish a win.
The goal is to create a website that is Informational, enjoyable and challenging. The website takes a commonly known card game to teach chance and probability to students and for any user to have fun while challenging themselves to reach the winning objective of 1000 credits.
The concept started as a practice project so that I could learn javaScript and in the process I came to realise that although it was a basic game it's rules provided many intricate details that really challenge my understanding of code. It began with the game only, three cards and buttons to initiate the deal, the bet and a reset. After about two weeks of painstaking learning, I realised that I had spent so much time trying to work out the intricacies that I would finish it a submit it for my second project for the Code Institute.
At this point I designed the rest of the site on figma.com and decided to make it a learning site for probability, as I am a maths teacher, I felt it appropriate.
Figma Design
The favicon was chosen from a generic set of playing card related icons. its a gif the flicks through each of the suits of cards.
Favicon https://www.favicon.cc/?action=icon&file_id=761394
The colour scheme is various shades of green to depict the felt of casino tables and yellow and orange text to stand out clear from the background. There are also grey borders surrounding the cards and black writing for the listed points in the ante and betting instructions section.
I chose a generic font as other fonts did not seem to fit the theme of a nineties style casino card game site. I chose "Franklin Gothic Medium" for the heading of inbetweens and "Arial Narrow" Arial and sans-serif for the paragraphs and subheadings.
The pictures of cards were downloaded from https://bicyclecards.com/. I took the clearest images of each card I could find and used windows Print 3d to crop the images to size. I name each image by its number value and the first letter of its suit. I also did the same the iconic back cover of a bicycle playing card. Having a choice of red or blue I went with blue.
The header plays on the word itself, placing the card between the word splitting Inbet and weens with the iconic blue card backing of the bicycle franchise. The user can click on this card taking them directly to the game. Otherwise they can use the navigation bar to go to the probability calculator or the game itself.
I kept the navigation bar basic to stick with the nineties theme of a casino style card site. It was originally below the heading but I chose to place the navigation bar at the top of the site like the old style card game sites depicted.
The main section it divided in to three sections and a footer below. An introduction section, the card ranking with game objective and a section focused on the ante and betting system for the user clarification.
This page is dedicated toward learning about the probability of a win or loss.
The dealer lays two random cards face up, side by side and in front of the player, so both dealer and player can see the value of each card, a third card is then laid face down in-between these cards and play begins.
Red Ace (High), K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2, Black Ace (Low)
To reach 1000 credits.
Once the first two cards are dealt the player chooses whether they wish to be dealt the hit card. For example, if the first two cards are consecutive then there is no card in-between and so the player passes and two more cards are dealt, the same if the first two cards are equal in value. For this reason, the player pays 5 credits only when the initial two cards are one or more values apart, this way the player has a chance but also cannot continue to hold their bet until they are dealt cards that guarantee a win. In short, the player pays 5 credits ante to the pot each time that a playable set of cards are dealt.
The bet will then commence once a set of playable cards are dealt and the player puts 5 credits to the pot, then the hit card is placed face down and the player chooses whether to either pass, double, triple, quadruple etc players bet on the premise that the hit card value is in-between the dealer cards values. The player can only bet with the credits they have.
If the hit card is not between the dealers cards, then the player loses the bet. If the hit card is the same value as either of the dealers cards then again the player loses the bet as it is not in-between. If the card is in-between, then the player wins the pot and play continues from the beginning. The player wins the game outright if they reach 1000 credits.
The footer contains the copyright logo, with a sentence "A Probability game: Inbetweens by Mark Young 2023" Also contained in the footer are href access to my linkedIn and Github account.
Please see TESTING.md for all testing performed
When I gain more knowledge by completing the code institute course there are some functions and features I would like to implement in future iterations of this game.
The development platform used for this project was GitPod. To track the development stage and handle version control regular commits and pushes to GitHub has been conducted. The GitPod environment was created using a template provided by Code Institute. The live version of the project is deployed at GitHub pages. The procedure for deployment followed the "Creating your site" steps provided in GitHub Docs.
The live deployed link can be found here: https://markyjay.github.io/inbetweens/
Site Design The site application Figma was used to portray an overall image of the project beforehand. https://www.figma.com/
Color Palette Basic green for the background with various shades, yellow, red and black for the writing.
Font styling The following site was used to generate a good combination of font that worked well with the theme of the site.
https://cdnjs.com/libraries/font-awesome
This site was recommended by code institute and used to portray the responsivity of the project.
Learning CSS Grid To learn CCS grid these sites were utilised. https://www.w3schools.com/css/css_grid.asp https://codepen.io/waffleknit/pen/KJEpLp https://www.youtube.com/playlist?list=PL4cUxeGkcC9itC4TxYMzFCfveyutyPOCY
Learning JavaScript To learn the various methods of JavaScript these sites were utilized. https://www.w3schools.com/js/default.asp https://pythontutor.com/ https://exercism.org/
Error research To fix errors in my code I utilised sites such as https://stackoverflow.com/ https://www.youtube.com/ https://www.w3schools.com/
For inspiration in general, for code, design help and advice, I'd like to give thanks to;
Jubril my mentor at Code Institute who was very patient and generous with his time.
Kyle Clow, Sasan Tazayoni, Stephen Dawson and Jody Murray fellow students I met during hackathons. They helped me kindly and patiently with advice and encouragement.
Patricia Young my mother who has been encouraging and patient with me throughout the project.
Slack members and the code institute tutoring service were also helpful and thourough with their attention.