<-- Home
| Klaverjas voor twee spelers,
in plaats van 4, tegen de computer. Oorspronkelijk geschreven in Turbo C voor DOS, nu opnieuw gebouwd als Windows 11-desktopprogramma in C# en als Swift-app voor iPad, iPhone en Mac. Die laatste zijn gratis te downloaden uit de Apple App Store. De Windows-versie staat als exe-bestand in deze repository. De met de hand getekende kaarten uit het origineel van 1990 zitten er nog steeds in, pixel voor pixel. |
Klaverjas for two players, instead of four, against the computer. Originally written in Turbo C for DOS, now rebuilt as a Windows 11 desktop program in C# and as a Swift app for iPad, iPhone and Mac. The last ones can be downloaded from the Apple app store for free.
The Windows version is in this repository as exe file. The hand-drawn cards from the 1990 original are still there, pixel for pixel. |
More on Github: https://github.com/ednieuw/Klaverjas
Dit is een klaverjasspel voor twee spelers geschreven in Turbo C++. Het programma is geboren op vakantie in het Franse plaatsje La Guillermie. Daar werd na veel ploeteren een kansfunctie uitgedacht die de kans op een of meer kaarten bij de tegenstander kon berekenen, bij dit klaverjasspel, wat wij elke avond na het eten speelden.
In het zonnetje werden de kaarten getekend en bij thuiskomst werd de eerste start voor dit programma gemaakt (Sept 1990). Het oorspronkelijke programma is geschreven voor een VGA display.
Nu, 2026, zijn er dus ook versies voor Windows 11 en Apple MacOS en iOS voor de iPad en iPhone. De Apple versies zijn te downloaden in de Apple app store.
This program was made to play Klaverjas against the computer. I played it a lot on holidays and thought it was nice to make a computer version of the game.
A lot of time was spent to recall the statistics to calculate the odds that the opponent had a card (e.g. 10 clubs) in his hand. We were on holiday and had no books. After buying a calculator, that could calculate factorials, the formulae was found and called Guillermie, after the village near Vichy in France where we were camping. The cards were designed on paper with millimeter squares with colored pencils and eventually the holiday was over.
Making the program was not as easy as I initially thought, but after several months the program worked and here is the result.
The game is a typical Dutch game but the rules may be found in specialized card game books. Normally the game is played with four players. The cards of the third and the fourth player are laid down on the table, four open and four closed. The cards first played may be from the table or the hand, the second card, played by the opponent, must be played from the table. So you are playing for yourself and the third person. The computer plays the opponent and the fourth player.
Het programma werkt als volgt:
Er zijn 8 kaarten in de hand en 8 kaarten op tafel waarvan vier dicht onder de open kaarten voor elke speler.
Er moet eerst troef gekozen worden. De computer bepaalt willekeurig wie begint.
De uitkomst mag uit de hand of van tafel, maar daarna moet vanaf de tafel gespeeld worden.
De laatste slag is weer uit de hand van de tegenspeler.
Dus hand, tafel, tafel, hand of tafel, tafel, hand, hand.
The program works like this:
There are 8 cards in hand and 8 cards on the table, with four face-down cards under the face-up ones for each player.
Trump must be chosen first. The computer randomly decides who starts.
You can play from your hand or from the table first, but after that, you have to play from the table.
The last trick is again played from the opponent's hand.
So hand, table, table, hand or table, table, hand, hand.
De kaartslagvolgorde bij troef is: B 9 A T H V 8 7. De niet-troefkaarten hebben de volgorde: A T H V B 9 8 7. Je moet de kleur bekennen die gevraagd wordt. Heb je die kleur niet dan moet je troeven. Als er troef wordt gevraagd moet de volgende troefkaart die gespeeld wordt hoger zijn indien mogelijk. Is er geen troef meer dan mag een andere kaart worden geworpen.
De puntentelling gaat als volgt: A=11, T=10, H=4, V=3, B=2, en de rest (9, 8 en 7) nul punten. Bij troefkaarten geldt: B=20, 9=14, A=11, T=10, H=4, V=3 en de 8 en 7 geen punten.
Er zijn ook roempunten te behalen. Als er een 'driekaart' valt, dwz. drie opeenvolgende kaarten van de volgende volgorde A H V B T 9 8 7, bijv. HVB of BT9, dan worden er 20 punten bij degene die de slag haalt bijgeteld. Een vierkaart, bijv. HVBT of AHVB levert 50 punten op. Vier dezelfde kaarten, bijv. HHHH van de vier kleuren levert 100 punten extra op. (Helaas een bug en als dit valt geen punten.) Bij troef is er nog 'het stuk', nl. HV, dit levert 20 punten extra op. De laatste slag levert 10 punten roem op.
Zijn alle punten bij een speler gevallen (152+10) dan krijgt deze speler 100 punten extra. Is deze speler niet degene die troef heeft gemaakt, dan nog eens 100 punten extra. Na een slag moet een toets of muisknop gedrukt worden om de volgende slag te spelen. Een spel is beëindigd bij 1500 punten.
The card ranking order for trump is: J 9 A 10 K Q 8 7. The non-trump cards have the order: A 10 K Q J 9 8 7. You must follow the suit that is asked for. If you don't have that suit, you must play a trump. If a trump is asked for, the next trump card played must be higher if possible. If there are no more trumps, you can play another card.
The points are counted as follows: A=11, 10=10, K=4, Q=3, J=2, and the rest (9, 8, and 7) score zero points. For trump cards: J=20, 9=14, A=11, 10=10, K=4, Q=3, and 8 and 7 score no points.
You can also earn bonus points. If a 'three-card' comes up, i.e., three consecutive cards in the following order A K Q J 10 9 8 7, e.g., KQJ or J 10 9, then 20 points are added for the player who wins the trick. A four-card, e.g., KQJ10 or AKQJ, gives 50 points. Four of the same card, e.g., KKKK from all four suits, gives an extra 100 points. (Unfortunately, a bug exists, so if this happens no points are awarded.) With trump there is also 'the piece', namely KQ, which gives an extra 20 points. The last trick gives 10 bonus points.
If all points have gone to one player (152+10), that player gets an extra 100 points. If that player didn't make trump, then another 100 points is added. After a trick, a key or mouse button must be pressed to play the next trick. A game ends at 1500 points.
Veel succes en probeer maar van dit spel te winnen.
| Download Windows 11 versie | Deze exe draait op Windows 11. |
| Download MacOS 2026 DMG versie | Pak de zip uit en sleep de DMG bij je programma's (applications). |
| Download the klaverjas program for DOS | Dit is de DOS-only versie. Deze versie kan gespeeld worden in Windows 95, 98, ME, 2000 en XP. |
| Download klaverjas in a DOS-box | Deze versie draait in een Windows DOS-box en is geschikt voor Vista en Windows 7. This version runs in a DOS-box and can be run on all Windows versions including Vista and Windows 7. Unpack all files in Program Files in a folder named Klaverjas and start StartKJ.exe. Otherwise edit the file dosbox.conf. (Last sentences of this file.) |
Try to guess/solve the right position of the colored bulbs.
Download the mastermind program for Windows
This page revised, 19 august 2026
7 februari 2009, 31 december 2006, 7 November 1996
Ed Nieuwenhuys