sauravyash / fury-of-dracula

COMP2521 Dracula Game
MIT License
1 stars 0 forks source link

Drac ties to make an illegal d3 move on following strings #19

Closed cindyjbli closed 4 years ago

cindyjbli commented 4 years ago

GED.... SMA.... HRO.... MGA.... DMU.V.. GMN.... SBO.... HMI.... MCD....

GGE.... SGE.... HGE.... MGE.... DMU.V.. GPA.... SPA.... HPA.... MGE....

GZU.... SVI.... HVR.... MTS.... DFR.V.. GGE.... SBR.... HSO.... MNP....

cindyjbli commented 4 years ago

problem was in isInTrail

int trailSize = (max > 5 ? DOUBLE_BACK_5 - DOUBLE_BACK_1 : max); { for (int i = max - trailSize; i <= max; i++) {

if (max > 0 ) { if (max - 4 < 0) trailSize = max-1; {

for (int i = max - trailSize; i <= max; i++) {