MaximilianAdF / NoPixel-MiniGames-4.0

A web-based project designed to replicate/build similar "hacking" challenges to those that can be found on the NoPixel 4.0 FiveM Server. Constructed using React, Next.js, with TailwindCSS, TypeScript, HTML & CSS. ↓ Deployed to Vercel ↓
https://no-px.vercel.app
101 stars 42 forks source link

Roof running game keeps refreshing and saying 'failed' [BUG] #22

Closed klydeinside closed 8 months ago

klydeinside commented 8 months ago

https://github.com/MaximilianAdF/NoPixel-MiniGames-4.0/assets/37005235/e26f39e6-92f3-4c10-a25e-2f3da91efa98

I played this the other day for a long time and it never did this. I'm not sure what's happening. When I first played it, I played it on a browser full of extensions with no issues. I tried the same browser and also a browser with 0 extensions installed. Also tried private mode. It just keeps doing this.

MaximilianAdF commented 8 months ago

The game you showed have become unsolvable after the clicks that you have performed. Since there's no solution it automatically ends the game

As an illustration here's how it would go in the first game (r = red, b = blue, g=green) r
g b g
b b g r
b r r g b
r r r b b
‎‎ 
r
g r
b b g g b
b b g b b
 
 
 
r g g b
g r g b b

As you can see there's a green cornered in the bottom left corner that will never be possible to remove. All possible combinations are tested when these automatic fails are performed.

Although I did notice that the second game you played actually did have a solution, I will look into this case and see what's causing the false positive.

MaximilianAdF commented 8 months ago

checkSolvable() function not working correctly

MaximilianAdF commented 8 months ago

False positives have been fixed now