Credit Chess banner

Credit Chess

11 devlogs
13h 19m 39s

Your average chess game but with your real life financial problems, you've got loans, you've got debt, you've got taxes, what more could you ever wish for :)

I keep loosing to 8 year olds on chess.com so I decided that I'll take my revenge by t…

Your average chess game but with your real life financial problems, you’ve got loans, you’ve got debt, you’ve got taxes, what more could you ever wish for :)

I keep loosing to 8 year olds on chess.com so I decided that I’ll take my revenge by traumatizing them with the reality of terrible financial decisions and the weight of generational debt because why not.

Demo Repository

Loading README...

koshivf

Shipped this project!

I made a chess game mixed with the harsh world of finance. You now have a salary, bills to pay, debt, loans, rent, and most importantly: Taxes.
I implemented 5 new main functionalities:

  • the ability to sell your pieces for money
  • to buy pieces with money
  • to buy tiles which your opponent rents when he has a piece on it
  • to use the bank to invest, loan, or withdraw a certain amount of money
  • and to see the last amount you paid in taxes, and in how much time you’ll have to pay again

So of course I had to create a balance and debt system, which was a hassle because for some reason it took me a day to finally make the debt system work.

I haven’t tested this game with anyone other than myself, but I can already tell you it is the complete opposite of balanced and I take proud in that.

Have fun maybe ? Honestly it’s difficult to have fun when you have to manage your money virtually in addition to real life… so “good luck” might be better suited lol

koshivf

Ok I know I said I was done, but I implemented a shop where you can buy any piece (except the king for obvious reasons) for the same amount as the one you would get if you captured it, and you will then be able to place it somewhere on your 2 closest rows, aka your starting rows.

I also thought about adding a way to gamble your life away, but after not so much thinking, I ended up scrapping the idea as it would be too difficult to make animations and visuals considering my lack of design skills.

Attachment
0
koshivf

I think we’re finally done, or rather I think it’s a good moment to stop before I start adding cursed stuff like Casinos and IRS interventions.
I tweaked a few UI things here and there, like the border for the Bank and Tax pop ups to be the same as for the Sell Piece and Buy Tile. I added a white space where you can input the amount you want to invest, loan or withdraw at the bank and fixed a few other bugs I found like the Next tax turn which stopped at 0 and did not reset to 10 after the said tax turn but now that’s fixed.

Attachment
0
koshivf

Currently working on taxes and banks, (yes I also wonder how I ended up doing that while playing chess), You now have one central bank which let’s you take loans, invest or withdraw invested money every once in a while, Taxes are paid every 10 turns and are calculated using this weird ahh random formula I came up with:
Tax = 20% of (player balance + amount of pieces * 3 + number of rented tiles * rent price)
or something like that…

When investing money in the bank, you get 5% return every turn, which isn’t bad, and furthermore, the money invested in the banks is actually a form of fiscal fraud, as it the IRS doesn’t know about it so it basically isn’t taxed at all, however, to counter that, you can only withdraw your money 5 turns after its investment.
Oh and also, about the loans, well you can loan a maximum of 10 000 $, and you need to pay back 10% of that within the next 10 turns, and then the next 10% within the 10 others, etc, until it’s payed off, then, you need to pay the bank a bonus, that bonus = number of days you took to pay the loan back * 10 $, which is chill honestly, but I’m more interested in implementing fiscal fraud than a balanced economy so I don’t care.

Attachment
0
koshivf

You can now buy empty tiles for a whopping 199$, and every turn your opponent has piece on that tile, he automatically transfers you 112$, and no, there is no symbol or text that marks the tile to tell you which one is rented at all, so be sure to remember, or things might get really expensive.
Also, if the owner of a tile goes into debt, his tile(s) are immediately sold for 156$ each to pay it off, yes all of them. So I advise you to not take too much risk either…

Wow I just realized I managed to include the housing crisis into a game of chess, ngl I’m kinda proud of myself for that one, wasn’t on my bingo card this month.

Attachment
0
koshivf

Each piece now holds a value, or rather 2: a capture value and a sell value.

  • Capture value is how much money you gain from capturing this piece (yes you can now profit from mass kidnapping, this game is somehow getting less and less ethical the more time I spend making it)
  • Sell Value is how much you gain when you sell it yourself, which you would do if you were in debt,
    that value is around half of the capture value, because everyone sells everything when they can’t afford anything anymore, so banks can just lowball the hell out of you uk

Also I tried adding a blur effect but I failed miserably and you’ve just got a dimmed darker background now…

Attachment
0
koshivf

Took a bit but here’s the base of the credit system, both player have a Balance, a Debt, and an Upkeep value:
Balance is how much money you have and you can spend
Debt is, well, how much you owe (the bank which doesn’t exist yet but trust me bro)
Upkeep is basically the maintenance cost the player pays each of his turns:

  • Queen’s cost is 499 (she’s the queen after all)
  • King’s cost is 295 (he’s royalty but he also needs to spend money on his wife, who of course likes very expensive cost, btw legend says both of them actually hate each other and actually got married because of a contract Chess.com forced them to sign by taking their loved one hostage)
  • Knight’s cost is 199 (bro got a horse, feed him correctly or you’ll get cancelled by PETA™)
  • Rook’s and Bishop’s cost is 120 (they just be chillin, as long as they’ve got booze they’re happy)
  • Pawn’s cost is NONE (he’s just a pawn)

Each round, the player’s gain money from the number of pawns they’ve got, each pawn’s represents an income of 220 $ for you (you’re basically a ultra-capitalist evil CEO exploiting your employees)

Attachment
0
koshivf

Ok I think the base chess game is finally done, I added acual sprites for each piece from https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces , I learned that python isn’t compatible with .svg files, so I had to convert everything to png. Instead of closing the game you now have a proper winning screen. On the top left corner you’ve got a history of the last 5 moves, with a down scaled sprite of the piece involved, and it either shows [tile A] to [tile B] if it just moved, and [tile A] got [tile B] if it captures a piece on tile B. So yeah you also have proper Checkmate detection and all, forgot to say it before but there was already stuff like “castling” and “en passant”.

Attachment
0
koshivf

All pieces now exist and work fine, the sides now switches automatically after each move, but there still isn’t any rule implemented or even the end of the game for check or checkmate, and I feel like this is going to be a hassle but I’ll try that next I guess.

Attachment
0
koshivf

Valid moves are now highlighted in orange when selecting a piece, right now there are just the pawn and the rook, as they have the easiest movements.
Pawns can already capture pieces in diagonal and the rooks, well, in a straight line ig ? for now I’m just trying to make a normal chess game before going crazy.

Attachment
0
koshivf

Added a “2 player system”, well it’s not online multiplayer or whatever, you just have 2 sides to the board, which you both play yourself, or at least on the same device, to switch side, press ENTER.
You can also click on a tile to turn it green or red depending if you play white or black, it’s just a test to see if it works but later it will be the indicator to show what move you or your opponent last made.
I also implemented an ESC keybind to close the window and a hover effect which darkens the tile your cursor passes on.

Attachment
Attachment
0
koshivf

Starting making the UI, designed the base chessboard in a flavortown style, or at least using the same shades of colors, that’s it for now.

Attachment
0