Talk:PokéBattle

From Esolang
Jump to navigation Jump to search

News

I've created a Python interpreter for PokéBattle. I tried to stay as close as possible to the original specification and it has a working Hello World example.

For this Esolang

Is it allowed to change the value of a variable in this programming language? --PrySigneToFry (talk) 12:10, 8 May 2024 (UTC)

Some pseudo code

Nope. Interpreter

Trainer 1: XsnEpW
 D4FsrWgQ
 fi8EO3ku
 w83FLQif
 QmA1hQ2c
 nSOw73FE
 Z39FOEar
Trainer 2: ThrMsQ
 sVRuwk2j
 SNJ18Fkd
 hE8wodiQ
 xdi8aho2
 jlie3jFW
 QudFLei3 
‌
Battle Start!
Turn 0:
 XsnEpW: QmA1hQ2c Go!
 ThrMsQ: QudFLei3 Go!

Turn 1:
 Take a character as the user input, but not NUL. If it's NUL, go to turn 3.

Turn 2:
 Jump to turn 1.

Turn 3+: 
 Output "Nope.".

Battle End!
Winner: XsnEpW

Truth Machine

Trainer 1: XsnEpW
 D4FsrWgQ
 fi8EO3ku
 w83FLQif
 QmA1hQ2c
 nSOw73FE
 Z39FOEar
Trainer 2: ThrMsQ
 sVRuwk2j
 SNJ18Fkd
 hE8wodiQ
 xdi8aho2
 jlie3jFW
 QudFLei3 
‌
Battle Start!
Turn 0:
 XsnEpW: QmA1hQ2c Go!
 ThrMsQ: QudFLei3 Go!

Turn 1:
 Take a numberas the user input. If it is 0, then jump to turn 4, otherwise jump to turn 2.

Turn 2:
 Output "1".

Turn 3:
 Jump to turn 2.

Turn 4: 
 Output "0" and then exit.

Battle End!
Winner: XsnEpW

Prime detector(if this Esolang is Turing-complete)

Trainer 1: XsnEpW
 D4FsrWgQ
 fi8EO3ku
 w83FLQif
 QmA1hQ2c
 nSOw73FE
 Z39FOEar
Trainer 2: ThrMsQ
 sVRuwk2j
 SNJ18Fkd
 hE8wodiQ
 xdi8aho2
 jlie3jFW
 QudFLei3 
‌
Battle Start!
Turn 0:
 XsnEpW: QmA1hQ2c Go!
 ThrMsQ: QudFLei3 Go!

Turn 1:
 Take a number as the user input. Then jump to turn 2.

Turn 2:
 Find all divisors of the user input. If there are only 2 divisors then go to turn 3, otherwise turn 4.

Turn 3:
 Output "质数" then go to turn 5.

Turn 4: 
 Output "合数" then go to turn 5.

Turn 5: 
 Halt.

Battle End!
Winner: XsnEpW

Summary

I need someone to implement them. --PrySigneToFry 2024年8月2日,23:33 农历六月廿八 (CHN)