OkeyCard is a minigame from Metin2, the rules are simply:
There are 24 cards, 3 colors(Red, Blue, Green), 8 cards each with numbers from 1 to 8. The goal of the game is to score at least 400 points, points can be earned by combining 3 cards:
100 points - One by one, cards of same colors (eg. 1R,2R,3R, R - red colour)
10 + 10 * the smallest card number - One by one, cards of different colors (eg. 1R,2B,3R = 20 points, R- red, B- blue)
10 + 10 * number of card - Three cards of the same number(eg. 8R, 8B, 8G = 90 poitns, R - red, B - blue, G- green)
Creating a bot so that it plays faster and with better accuracy than the user
| Games played | Wins(>=400pkt) | Win ratio | Average time for 1 game |
|---|---|---|---|
| 4410 | 1970 | 44.67% | 33.58s |
UPDATE, optimized version:
| Games played | Wins(>=400pkt) | Win ratio | Average time for 1 game |
|---|---|---|---|
| 2932 | 1340 | 45.70% | 30.55s |
UPDATE: now BOT resign when game is unwinable(impossible to get 400 points),
| Games played | Wins(>=400pkt) | Win ratio | Average time for 1 game |
|---|---|---|---|
| 11145 | 4960 | 44.50% | 23.95s |
UPDATE:
| Games played | Wins(>=400pkt) | Win ratio | Average time for 1 game |
|---|---|---|---|
| 19348 | 8627 | 44.58% | 19.89s |
- Now BOT can be stopped by pressing and holding "END", and resume with "HOME".
- If something went wrong(it's MMO game) program will play the music and send notification(with current screenshot from game) to Slack application.
- Information about games are gathering in Excel file.
| Games played | Wins(>=400pkt) | Win ratio | Average time for 1 game | |
|---|---|---|---|---|
| Me | 304 | 143 | 47.03% | 51.63s |
| BOT | 304 | 150 | 49.34% | 33.06s |
If you think I played the sets wrong, you can try to play the(first 50) sets yourself!
Download(only for Windows): https://drive.google.com/file/d/16xbowZ37K9XiXRZSl6io47qE3WJiB6GQ/view?usp=sharing
Make the same bot, but using a Machine Learning model.



