This submission improves ShesChardcore's run by 228 frames, due to a route change and micro-optimizations.

Game objectives

  • Emulator used: BizHawk 2.8.0
  • best ending

Comments

To achieve the best ending, you have to earn $131,072 (0x20000 in hex). For this purpose, you can consider various methods, and the fastest route is not so obvious. I used a slot machine (and a video poker to manipulate RNG).
RNG of this game is quite different from the one of GB version. RNG has a "RNG index" and a "RNG table". Every time RNG generates a random number, it increments RNG index. And, RNG index is also incremented at each frame while you are staying at the casino hole. And, every time RNG generates a random number, it "scrambles" RNG table. Consequently, it is not so easy to manipulate RNG as GB version.
I read the game code, and wrote a solver to achieve the best ending. I found a 3-step solution which uses a video poker and a slot machine. According to my solver, it is a unique 3-step solution. But I'm not sure whether it is fastest, due to losses for cursor movement. There are also many 4-step solutions, and some of them use only slot machines. (example)
Here is a RAM map:
AddressTypeDescription
$18u8PPU scroll x
$19u8PPU scroll y
$A7u8money ($100 units)
$A8u8money ($25 units)
$A9u8money ($10 units)
$AAu8money ($5 units)
$ABu8money ($1 units)
$04EAu8cursor x
$04EBu8cursor y
$0531u8[5]video poker: cards
$0551u8RNG index
$0621u24lebuffer for money/prize calculation
$0664u8[4]slot machine: final reel values
$067A-$0773u8[250]RNG table
$077Eu8money ($25500 units)
Here is a ROM bank #6 map (bank ID is 0-indexed):
AddressDescription
$82F2slot machine routine
$8E7Froulette routine
$95F6wheel of fortune routine
$9C67blackjack routine
$A657poker routine
Here is a ROM bank #7 map:
AddressDescription
$F922RNG routine
By the way, you can get a royal flush in the video poker, and the game says you can earn $400,000 by a royal flush. But actually, the prize of video poker is treated as a unsigned 16bit value and it overflows (400000 mod 65536 = 6784):

feos: Claiming for judging.
feos: Thanks to ViGadeomes for the review once again, accepting over [4944] NES Caesars Palace "best ending" by ShesChardcore in 00:41.35.

despoa: Processing...


TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15629
Location: 127.0.0.1
This topic is for the purpose of discussing #7967: TaoTao's NES Caesars Palace "best ending" in 00:37.55
ShesChardcore
She/Her
Skilled player (1594)
Joined: 2/23/2022
Posts: 132
Location: MN
Beautiful! Thank you again for your efforts on these.
LoganTheTASer
He/Him
Banned User
Joined: 7/3/2022
Posts: 463
Location: Berkshire, UK
great work! i would never have the patience to figure out crazy stuff like that lmao yes vote for insane luck manipulation.
YouTube: @LoganL2008 Discord: sneakers_o_toole Watch my TASes here: https://youtube.com/playlist?list=PLmcAd4CTuEymf4qWKIE0Pv_NlA031cYR1&si=m1hP9qz9c8Ip35Ur
ViGadeomes
He/Him
Judge, Active player (311)
Joined: 10/16/2017
Posts: 462
Location: France
This is a valid improvement, nothing to say in term of optimization and settings. Great RNG manipulation which is well explained once again ! Everything fits to me !
Post subject: Movie published
TASVideoAgent
They/Them
Moderator
Joined: 8/3/2004
Posts: 15629
Location: 127.0.0.1
This movie has been published. The posts before this message apply to the submission, and posts after this message apply to the published movie. ---- [5084] NES Caesars Palace "best ending" by TaoTao in 00:37.55