Putin Plays Chess With Donald Trump


Created by: Pasi Toivonen, 2025






Source code


Putin plays Chess with Donald Trump. These two leaders have some disagreements, so they decided to solve them for once by playing a modified Chess. I created this game in 1996 for Commodore 64 about one year before it broke down (arter serving me over 12 years). It was the best game I have ever created. Unfortunately, the C-64 version looked much better.

I used same method: Computer recognizes the chess pieces or buttons by ASCII-code. In the C-64 version the ASCII-code was directly related to the number of each button; for example: CHR$(116) = button(16). But since this is not possible in Qbasic unless there are ten pieces or less, I had to change constantly from ASCII to the letters (trumpa%, trumpb%, etc.) and back, and that's why the code is terrible, and first I thought it is not possible to create this game with Qbasic without zillion sub-programs, and I did not even try, and I created 'Ukraine Deadlock' instead. But this was the game I had in my mind; so this is actually an improved version of 'Ukraine Deadlock'. Or this is how I think. (You might think this is terrible...)

In my C-64 version I re-designed the ASCII-letters so that they looked like buttons, but I think it is not possible with Qbasic, so I had to keep them as letters. Luckily, the letters are designed so that they are pretty nice, and luckily there are different ASCII-code for capital letters and small letters.

I used all the letters, from A to Z, because (my opinion) it creates harmony. It is easy to remove extra buttons, if you think there are too many; and it is easy to shrink the playing ground, too.

RULES

First you have to decide the value for random. It determines how much extra strength you get to your manpower when there is a battle. For example, if Putin and Trump have both 59 men, Putin has 59 + (1 to RND) and Trump has also 59 + (1 to RND).

Putin is always starts. You have two options: Move or increase your manpower by 20. Letters A to W (max. 79). Letters X to Z (max. 99). If you type 'V' you can see how much manpower your opponent has.

Letters A to C moves two steps instead on one. Otherwise the rules are same.

If Trump reaches A-line first, Trump wins. Since Putin starts, if Putin reaches Z-line first, Trump has one opportunity to reach A-line, and in this case it is a tie, because both have made as many moves.

If Putin moves to square which is occupied by Trump or vice versa, there is a battle. Naturally, stronger button wins. And the winner loses some of his manpower. (I borrowed this idea from 'Archon'.)

Since the playing ground is so big and both have 26 buttons, the game might last for hours. I have no opportunity to test this game with the real opponent, but I hope you enjoy it.


Pasi Toivonen
Mänttä-Vilppula
FINLAND

email: Hurricaneharvey64@gmail.com
https://vk.com/pasitoivonen


GAZETA FINLANDIA