Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Balatro: the Séance joker is called Seance, not Singance
Mason Chen6234249c4c2c
diff --git a/games/balatro/lang/fr.txt b/games/balatro/lang/fr.txtindex d4a863fa..de20fa55 100644--- a/games/balatro/lang/fr.txt+++ b/games/balatro/lang/fr.txt@@ -122,7 +122,7 @@ Madness FolieWhen {C:attention}Small Blind{} or {C:attention}Big Blind{}\nis selected, gain {X:mult,C:white} X#1# {} Mult\nand {C:attention}destroy{} a random Joker\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) Quand la {C:attention}petite{} ou la {C:attention}grosse\nblind{} est choisie, gagne {X:mult,C:white} X#1# {} Multi\net {C:attention}détruit{} un Joker au hasard\n{C:inactive}(Actuellement {X:mult,C:white} X#2# {C:inactive} Multi)Square Joker Joker carréThis Joker gains {C:chips}+#2#{} Chips\nif played hand has\nexactly {C:attention}4{} cards\n{C:inactive}(Currently {C:chips}#1#{C:inactive} Chips) Ce Joker gagne {C:chips}+#2#{} Jetons\nsi la main jouée a\nexactement {C:attention}4{} cartes\n{C:inactive}(Actuellement {C:chips}#1#{C:inactive} Jetons)-Singance Séance+Seance SéanceIf {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room) Si la {C:attention}main de poker\nest : {C:attention}#1#{}, crée une\ncarte {C:spectral}Spectrale{} au hasard\n{C:inactive}(Place requise)Riff-Raff RacailleWhen {C:attention}Blind{} is selected,\ncreate {C:attention}#1# {C:chips}Common{C:attention} Jokers\n{C:inactive}(Must have room) Quand une {C:attention}Blind{} est choisie,\ncrée {C:attention}#1#{} Jokers {C:chips}communs\n{C:inactive}(Place requise)diff --git a/games/balatro/lang/zh.txt b/games/balatro/lang/zh.txtindex 0b530d3a..aa61e870 100644--- a/games/balatro/lang/zh.txt+++ b/games/balatro/lang/zh.txt@@ -123,7 +123,7 @@ Madness 癫狂When {C:attention}Small Blind{} or {C:attention}Big Blind{}\nis selected, gain {X:mult,C:white} X#1# {} Mult\nand {C:attention}destroy{} a random Joker\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult) 选择{C:attention}小盲注{}或{C:attention}大盲注{}时\n获得{X:mult,C:white} X#1# {}倍率\n并随机{C:attention}摧毁{}一张小丑牌\n{C:inactive}(当前为{X:mult,C:white} X#2# {C:inactive}倍率)Square Joker 方形小丑This Joker gains {C:chips}+#2#{} Chips\nif played hand has\nexactly {C:attention}4{} cards\n{C:inactive}(Currently {C:chips}#1#{C:inactive} Chips) 如果打出的牌\n正好为{C:attention}4{}张\n此小丑获得{C:chips}+#2#{}筹码\n{C:inactive}(当前为{C:chips}#1#{C:inactive}筹码)-Singance 降神会+Seance 降神会If {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room) 如果牌型为{C:attention}#1#\n随机生成一张\n{C:spectral}幻灵牌\n{C:inactive}(必须有空位)Riff-Raff 乌合之众When {C:attention}Blind{} is selected,\ncreate {C:attention}#1# {C:chips}Common{C:attention} Jokers\n{C:inactive}(Must have room) 选择{C:attention}盲注{}时\n生成{C:attention}#1#{}张{C:chips}普通{}小丑牌\n{C:inactive}(必须有空位)diff --git a/games/balatro/src/data.c b/games/balatro/src/data.cindex 3632bfc8..f2012e17 100644--- a/games/balatro/src/data.c+++ b/games/balatro/src/data.c@@ -100,7 +100,7 @@ const uint8_t text_blob[11206] = {165,215,128,173,10,130,133,4,100,181,186,111,121,128,177,216,100,172,32,158,10,224,180,18,32,229,173,41,0,83,113,117,129,132,158,0,84,164,131,255,103,197,131,2,43,18,128,232,162,242,170,159,192,235,162,101,120,154,116,108,121,143,52,128,144,162,224,2,17,229,232,115,- 41,0,83,233,130,99,101,0,73,102,143,112,149,32,225,128,200,97,156,17,16,230,99,155,+ 41,0,83,101,130,99,101,0,73,102,143,112,149,32,225,128,200,97,156,17,16,230,99,155,175,132,97,10,216,100,172,32,11,83,112,167,186,163,128,136,138,171,140,115,137,235,118,132,114,111,172,41,0,82,105,102,102,45,82,97,102,102,0,87,206,143,66,108,135,100,128,200,246,253,241,99,155,175,132,4,194,2,67,172,109,152,4,32,158,162,171,140,115,137,235,118,diff --git a/games/balatro/src/texts.h b/games/balatro/src/texts.hindex e9085b24..43faf41b 100644--- a/games/balatro/src/texts.h+++ b/games/balatro/src/texts.h@@ -67,7 +67,7 @@ T("Card Sharp"), T("{X:mult,C:white} X#1# {} Mult if played\n{C:attention}pokerT("Red Card"), T("This Joker gains\n{C:mult}+#1#{} Mult when any\n{C:attention}Booster Pack{} is skipped\n{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)"),T("Madness"), T("When {C:attention}Small Blind{} or {C:attention}Big Blind{}\nis selected, gain {X:mult,C:white} X#1# {} Mult\nand {C:attention}destroy{} a random Joker\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),T("Square Joker"), T("This Joker gains {C:chips}+#2#{} Chips\nif played hand has\nexactly {C:attention}4{} cards\n{C:inactive}(Currently {C:chips}#1#{C:inactive} Chips)"),-T("Singance"), T("If {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room)"),+T("Seance"), T("If {C:attention}poker hand{} is a\n{C:attention}#1#{}, create a\nrandom {C:spectral}Spectral{} card\n{C:inactive}(Must have room)"),T("Riff-Raff"), T("When {C:attention}Blind{} is selected,\ncreate {C:attention}#1# {C:chips}Common{C:attention} Jokers\n{C:inactive}(Must have room)"),T("Vampire"), T("This Joker gains {X:mult,C:white} X#1# {} Mult\nper scoring {C:attention}Enhanced card{} played,\nremoves card {C:attention}Enhancement\n{C:inactive}(Currently {X:mult,C:white} X#2# {C:inactive} Mult)"),T("Shortcut"), T("Allows {C:attention}Straights{} to be\nmade with gaps of {C:attention}1 rank\n{C:inactive}(ex: {C:attention}10 8 6 5 3{C:inactive})"),diff --git a/games/balatro/tools/mkdata.py b/games/balatro/tools/mkdata.pyindex 9d5eb735..a041a3b3 100644--- a/games/balatro/tools/mkdata.py+++ b/games/balatro/tools/mkdata.py@@ -14,6 +14,7 @@ builds, in the game's own markup. Without Balatro's source at hand,import osimport reimport sys+import unicodedataROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")@@ -325,8 +326,11 @@ def main():n, t = desc(cat, k)rows.append(("X", k, n, t, {}))- # string blob, compressed with byte pair encoding (codes 0x80..0xFF)- raw = [(r[2] + "\0" + r[3] + "\0").encode("latin1") for r in rows]+ # string blob, compressed with byte pair encoding (codes 0x80..0xFF): in plain ASCII, as a byte+ # 0x80 or above is a pair ("Séance" came out "Singance")+ def ascii(s):+ return unicodedata.normalize("NFKD", s).encode("ascii", "ignore")+ raw = [ascii(r[2] + "\0" + r[3] + "\0") for r in rows]seqs, pairs = bpe(raw, range(0x80, 0x100))blob = b"".join(bytes(x) for x in seqs)offs = []