Firestar
A CR games internship project. Working on different elements on one of their slot machine games: Firestar.
-
Date: 15/07/2019
Languages: C++
Keywords: Internship, CR games, Gambling
Overview
The main project at CR games I worked on was Firestar. This involved revamping one of their older games and learn the procedures that take to implement a slot machine game
Finding three in a row
The game already had the majority of the code implemented and my first task was to write the system to find three symbols in a row in different configurations. To do this I assigned each symbol a value from an enumerator and iterated through each configuration (stored as an array of 3 indexes) to find three symbols in a row. After I wrote this I was then shown a faster implementation involving binary masks however it was only faster when the check was put in which was if the first two symbols weren’t the same then don’t check the third one.
Nudges
Once the three in the row was done I had to implement a nudges system. This system entailed finding if once there was a three in a row close to the final position once a spin was done. If there was then the reels needed to be moved (nudged) by the player to get the three in the row. This system involved taking my minimax implementation from connect 4 and repurposing it so that it performed a depth-first search in finding the nearest three in a row. Was this was done I was then informed to automate the nudges instead of the user nudging it themselves.
Demo Video
Firestar gameplay video