Alien Storm (Genesis) Credits Select Cheat Tool Version 1.1
A command-line tool that computes some stuff regarding the Genesis Alien Storm game's credits select cheat.
Loading...
Searching...
No Matches
Functions | Variables
ComputeSolutions.cpp File Reference

Functions for computing all the solutions of a certain minimum length, for a certain initial internal state. More...

#include <fstream>
#include "Constants.h"

Functions

unsigned long long _FindSolutions (bool OnlySafeSolutions, unsigned short InternalState, unsigned short MaximumRecursiveDepth, unsigned short CurrentRecursiveDepth=0)
 
unsigned long long _ComputeSolutions (bool OnlySafeSolutions)
 

Variables

unsigned short * SolutionBuffer
 
fstream SolutionsFileCSV
 

Detailed Description

Functions for computing all the solutions of a certain minimum length, for a certain initial internal state.

Author
WaluigiBSOD

Function Documentation

◆ _ComputeSolutions()

unsigned long long _ComputeSolutions ( bool  OnlySafeSolutions)

This function computes all the solution of a certain minimum length.

Solutions found are also saved inside a CSV file, I/O errors are silently ignored, for now.

Parameters
[in]OnlySafeSolutionsIf true, solutions with left/right button presses are discarded, if false nothing happens. main() invokes this function twice, once with this parameter as false, once as true.
Returns
The number of solutions found.
Author
WaluigiBSOD

◆ _FindSolutions()

unsigned long long _FindSolutions ( bool  OnlySafeSolutions,
unsigned short  InternalState,
unsigned short  MaximumRecursiveDepth,
unsigned short  CurrentRecursiveDepth = 0 
)

The main logic behing computing all the solutions of a certain minimum length.

Search is pruned using the result of ComputeMinimumSolutionLengths.cpp. Solutions found are also saved inside a CSV file, I/O errors are silently ignored, for now.

Parameters
[in]OnlySafeSolutionsIf true, solutions with left/right button presses are discarded, if false nothing happens.
[in]InternalStateThe starting internal state.
[in]MaximumRecursiveDepthThe maximum recursive depth allowed to be reached. It's equal to the minimum solution length considered by _ComputeSolutions().
[in]CurrentRecursiveDepthThe current recursive depth. It's automatically set to zero in the function's declaration.
Returns
The number of solutions found.
Author
WaluigiBSOD