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
ComputeMinimumSolutionLengths.cpp File Reference

Functions for computing minimum solution lengths, regardless of the initial internal state. More...

#include "Constants.h"

Functions

bool _FindMinimumSolutionLength (unsigned short InternalState, unsigned short TargetInternalState)
 
void _ComputeMinimumSolutionLengths ()
 

Detailed Description

Functions for computing minimum solution lengths, regardless of the initial internal state.

Author
WaluigiBSOD

Function Documentation

◆ _ComputeMinimumSolutionLengths()

void _ComputeMinimumSolutionLengths ( )

This method computes all the minimum solution lengths.

It's done in various steps iteratively with no lengthy recursive searches.

Author
WaluigiBSOD

◆ _FindMinimumSolutionLength()

bool _FindMinimumSolutionLength ( unsigned short  InternalState,
unsigned short  TargetInternalState 
)

This is the main logic behind the method that computes all the minimum solution lengths.

Parameters
[in]InternalStateThe starting internal state.
[in]TargetInternalStateThe internal state to obtain by altering the InternalState variable, through button presses.
Returns
True if a button out of all the possible seven yields TargetInternalState by having InternalState as an input, false otherwise.
Author
WaluigiBSOD