Dataset Viewer
Auto-converted to Parquet Duplicate
version
int64
id
string
mapWidth
int64
mapHeight
int64
usernames
list
stars
list
cities
list
cityArmies
list
generals
list
mountains
list
moves
list
13
--N2EmQuf
18
21
[ "+qun771923864", "tototatatonton" ]
[ 75, 61 ]
[ 182, 53, 35, 144, 17, 123, 36, 288, 61, 264, 312 ]
[ 43, 43, 43, 44, 40, 42, 45, 43, 42, 49, 43 ]
[ 89, 164 ]
[ 0, 7, 13, 16, 20, 22, 27, 31, 37, 48, 50, 55, 63, 66, 67, 70, 77, 84, 86, 91, 92, 99, 106, 112, 118, 133, 134, 140, 149, 159, 163, 168, 178, 183, 186, 188, 189, 197, 205, 209, 213, 214, 215, 218, 222, 239, 248, 250, 256,...
[ [ 0, 89, 88, 0, 16 ], [ 0, 88, 87, 0, 17 ], [ 0, 87, 105, 0, 18 ], [ 0, 105, 104, 0, 19 ], [ 0, 104, 103, 0, 20 ], [ 0, 103, 102, 0, 21 ], [ 0, 102, 101, 0,...
13
--mLQZRuz
18
22
[ "Human.exe", "lishuo" ]
[ 82, 73 ]
[ 143, 242, 104, 248, 108, 201, 261, 97, 195, 109 ]
[ 49, 43, 47, 43, 48, 42, 50, 46, 40, 48 ]
[ 65, 278 ]
[ 1, 2, 10, 11, 32, 34, 50, 57, 58, 71, 78, 91, 100, 113, 130, 136, 137, 138, 146, 148, 151, 154, 156, 158, 162, 163, 168, 169, 170, 174, 175, 185, 188, 189, 190, 191, 192, 202, 203, 208, 213, 216, 217, 220, 226, 229, 234, 2...
[ [ 0, 65, 64, 0, 22 ], [ 0, 64, 63, 0, 23 ], [ 0, 63, 62, 0, 24 ], [ 1, 278, 279, 0, 24 ], [ 1, 279, 280, 0, 25 ], [ 0, 62, 61, 0, 25 ], [ 0, 61, 60, 0, ...
13
-0Vqds0ym
18
18
[ "Russian Invasion", "Human.exe" ]
[ 45, 72 ]
[ 222, 63, 182, 147, 82, 188, 189, 68, 34, 137, 42 ]
[ 44, 49, 43, 42, 49, 48, 40, 49, 48, 42, 45 ]
[ 220, 26 ]
[ 5, 8, 9, 19, 20, 24, 25, 36, 40, 43, 49, 57, 59, 60, 64, 74, 75, 87, 94, 101, 106, 113, 116, 118, 122, 135, 139, 142, 144, 157, 159, 160, 177, 179, 180, 187, 193, 194, 202, 203, 204, 216, 226, 240, 245, 248, 249, 252, 25...
[ [ 0, 220, 221, 0, 9 ], [ 0, 221, 239, 0, 10 ], [ 0, 239, 257, 0, 11 ], [ 0, 257, 258, 0, 12 ], [ 0, 220, 219, 0, 14 ], [ 0, 219, 201, 0, 15 ], [ 0, 201, 183, ...
13
-1s9MRoMn
18
18
[ "wjy love byb", "hshshssss" ]
[ 18, 71 ]
[ 299, 241, 95, 23, 265, 98, 7, 317, 38, 272, 254 ]
[ 45, 40, 43, 43, 43, 47, 47, 45, 42, 47, 45 ]
[ 312, 90 ]
[ 2, 13, 27, 29, 30, 31, 33, 37, 39, 43, 48, 50, 54, 58, 60, 61, 71, 81, 83, 93, 97, 101, 105, 111, 113, 118, 119, 124, 134, 137, 144, 154, 156, 165, 169, 170, 172, 175, 177, 184, 207, 209, 216, 219, 222, 230, 245, 249, 25...
[ [ 0, 312, 313, 0, 13 ], [ 0, 313, 314, 0, 14 ], [ 0, 314, 315, 0, 15 ], [ 0, 315, 316, 0, 16 ], [ 0, 316, 298, 0, 17 ], [ 0, 298, 280, 0, 18 ], [ 1, 90, 91, ...
13
-22PCm9ow
18
22
[ "csallen", "genshinrals" ]
[ 70, 50 ]
[ 8, 316, 112, 248, 335, 21, 258, 390, 188, 160, 178 ]
[ 44, 41, 41, 46, 41, 42, 43, 50, 46, 48, 50 ]
[ 366, 45 ]
[ 0, 5, 19, 20, 27, 29, 33, 40, 41, 43, 51, 58, 60, 63, 65, 68, 76, 77, 78, 80, 86, 88, 91, 94, 95, 96, 101, 110, 113, 114, 120, 127, 128, 145, 147, 152, 157, 158, 162, 168, 172, 175, 182, 185, 190, 192, 195, 206, 219, 2...
[ [ 0, 366, 365, 0, 24 ], [ 0, 365, 347, 0, 25 ], [ 0, 347, 329, 0, 26 ], [ 1, 45, 46, 0, 26 ], [ 1, 46, 47, 0, 27 ], [ 0, 329, 311, 0, 27 ], [ 0, 311, 293, 0...
13
-2bnCAtm6
23
18
[ "Re:Stacks", "Rag Doll Cat" ]
[ 71, 70 ]
[ 214, 121, 136, 232, 344, 105, 252, 22, 197, 388 ]
[ 44, 48, 41, 41, 46, 44, 45, 46, 41, 41 ]
[ 413, 196 ]
[ 1, 6, 14, 16, 37, 38, 48, 53, 60, 61, 70, 77, 83, 96, 100, 102, 104, 109, 110, 114, 126, 132, 133, 135, 145, 151, 174, 179, 180, 181, 182, 185, 188, 189, 190, 194, 200, 203, 215, 227, 230, 234, 248, 250, 255, 256, 267, 280...
[ [ 0, 413, 390, 0, 20 ], [ 0, 390, 389, 0, 21 ], [ 0, 389, 366, 0, 22 ], [ 0, 366, 365, 0, 23 ], [ 0, 365, 342, 0, 24 ], [ 1, 196, 219, 0, 24 ], [ 1, 219, 242, ...
13
-2gzEy_4_
21
22
[ "MrLearner", "_Crossover_" ]
[ 55, 70 ]
[ 316, 210, 291, 461, 82, 207, 15, 404, 79, 135 ]
[ 46, 44, 41, 50, 50, 41, 45, 44, 41, 50 ]
[ 17, 253 ]
[ 4, 12, 18, 21, 22, 29, 33, 34, 35, 39, 40, 43, 50, 51, 56, 57, 58, 64, 69, 74, 76, 87, 88, 94, 95, 98, 100, 101, 122, 133, 134, 144, 146, 149, 153, 160, 162, 165, 167, 171, 173, 176, 177, 180, 182, 186, 191, 194, 195, ...
[ [ 1, 253, 254, 0, 24 ], [ 1, 254, 255, 0, 25 ], [ 1, 255, 234, 0, 26 ], [ 1, 234, 213, 0, 27 ], [ 1, 213, 214, 0, 28 ], [ 1, 214, 215, 0, 29 ], [ 1, 215, 216, ...
13
-43RwBNMh
18
19
[ "Kongbai", "Ichihime" ]
[ 93, 71 ]
[ 196, 205, 155, 45, 249, 183, 154, 233, 189, 89, 27 ]
[ 49, 43, 45, 47, 45, 49, 41, 41, 47, 41, 43 ]
[ 265, 77 ]
[ 1, 5, 7, 13, 14, 18, 23, 25, 41, 50, 53, 54, 59, 65, 68, 82, 85, 87, 93, 99, 105, 107, 108, 109, 110, 111, 113, 123, 124, 135, 151, 156, 160, 162, 169, 170, 171, 175, 176, 179, 182, 186, 192, 193, 195, 203, 206, 210, 215...
[ [ 1, 77, 78, 0, 24 ], [ 1, 78, 96, 0, 25 ], [ 0, 265, 283, 0, 26 ], [ 1, 96, 114, 0, 26 ], [ 1, 114, 132, 0, 27 ], [ 0, 283, 282, 0, 27 ], [ 0, 282, 281, 0,...
13
-4hZcZctz
22
19
[ "animorul", "Human.exe" ]
[ 76, 73 ]
[ 272, 215, 29, 308, 43, 251, 137, 323, 71, 268, 195 ]
[ 45, 42, 46, 46, 46, 45, 45, 47, 44, 47, 42 ]
[ 276, 112 ]
[ 0, 4, 6, 7, 11, 13, 14, 31, 37, 48, 56, 57, 72, 73, 74, 75, 76, 78, 83, 84, 87, 90, 91, 96, 110, 131, 133, 134, 143, 148, 152, 159, 163, 166, 173, 175, 176, 178, 181, 187, 193, 196, 216, 219, 222, 225, 232, 247, 248, 2...
[ [ 0, 276, 254, 0, 13 ], [ 1, 112, 113, 0, 20 ], [ 1, 113, 114, 0, 21 ], [ 1, 114, 115, 0, 22 ], [ 1, 115, 116, 0, 23 ], [ 0, 276, 254, 0, 24 ], [ 1, 116, 117, ...
13
-4jrDGH2_
18
22
[ "Admins suck", "Human.exe" ]
[ 67, 72 ]
[ 363, 135, 360, 33, 43, 15, 232, 253, 258, 193, 213 ]
[ 45, 43, 40, 45, 47, 48, 49, 42, 46, 47, 41 ]
[ 233, 218 ]
[ 2, 4, 8, 9, 19, 20, 24, 32, 36, 40, 42, 49, 56, 60, 66, 69, 71, 81, 83, 88, 90, 91, 100, 103, 104, 109, 111, 115, 117, 122, 130, 150, 154, 165, 167, 171, 174, 188, 195, 196, 204, 208, 214, 219, 220, 225, 228, 231, 234, ...
[ [ 0, 233, 215, 0, 24 ], [ 1, 218, 236, 0, 24 ], [ 1, 236, 237, 0, 25 ], [ 0, 215, 197, 0, 25 ], [ 0, 197, 179, 0, 26 ], [ 1, 237, 255, 0, 26 ], [ 1, 255, 273, ...
13
-59tYBw0B
18
19
[ "Human.exe", "tyrante" ]
[ 74, 70 ]
[ 50, 162, 288, 327, 193, 25, 199, 15, 165, 120, 311 ]
[ 40, 41, 43, 47, 45, 46, 41, 42, 43, 48, 45 ]
[ 235, 88 ]
[ 12, 13, 14, 22, 29, 32, 43, 47, 62, 65, 67, 76, 77, 79, 80, 84, 91, 94, 95, 97, 98, 103, 104, 113, 118, 126, 129, 135, 136, 142, 143, 148, 150, 152, 160, 168, 176, 178, 188, 189, 190, 194, 197, 210, 211, 227, 229, 232, 2...
[ [ 0, 235, 236, 0, 18 ], [ 0, 236, 237, 0, 19 ], [ 0, 237, 238, 0, 20 ], [ 1, 88, 106, 0, 20 ], [ 1, 106, 124, 0, 21 ], [ 0, 238, 220, 0, 21 ], [ 0, 220, 221, ...
13
-5Bxb7LP0
20
18
[ "Human.exe", "zzd_bot release" ]
[ 75, 74 ]
[ 145, 173, 236, 254, 142, 161, 139, 357, 166, 168 ]
[ 48, 46, 44, 43, 41, 43, 49, 42, 46, 46 ]
[ 128, 339 ]
[ 1, 7, 9, 13, 24, 28, 35, 40, 49, 52, 53, 55, 56, 59, 60, 68, 69, 77, 80, 81, 87, 94, 96, 99, 101, 102, 105, 108, 109, 116, 118, 124, 134, 135, 137, 143, 147, 148, 155, 162, 165, 171, 172, 175, 179, 180, 195, 203, 210, ...
[ [ 0, 128, 129, 0, 20 ], [ 0, 129, 130, 0, 21 ], [ 0, 130, 131, 0, 22 ], [ 0, 131, 132, 0, 23 ], [ 0, 132, 112, 0, 24 ], [ 1, 339, 338, 0, 24 ], [ 1, 338, 337, ...
13
-5IwxWjaJ
18
18
[ "Human.exe", "primitive" ]
[ 69, 71 ]
[ 263, 220, 292, 241, 104, 143, 151, 84, 117, 72, 31 ]
[ 47, 44, 47, 47, 44, 46, 42, 45, 41, 41, 43 ]
[ 252, 302 ]
[ 2, 9, 17, 19, 35, 40, 59, 65, 71, 73, 74, 75, 77, 78, 85, 94, 96, 100, 105, 108, 109, 110, 115, 116, 118, 119, 123, 145, 148, 161, 162, 163, 170, 172, 186, 191, 195, 200, 206, 207, 214, 228, 237, 243, 260, 261, 275, 278, ...
[ [ 0, 252, 253, 0, 24 ], [ 1, 302, 284, 0, 24 ], [ 1, 284, 266, 0, 25 ], [ 0, 253, 254, 0, 25 ], [ 0, 254, 255, 0, 26 ], [ 1, 266, 248, 0, 26 ], [ 1, 248, 230, ...
13
-5RXGj5kr
19
20
[ "Human.exe", "wormoking" ]
[ 84, 80 ]
[ 280, 84, 30, 324, 139, 238, 127, 140, 232, 180 ]
[ 47, 44, 41, 43, 43, 47, 47, 47, 41, 40 ]
[ 155, 261 ]
[ 3, 6, 11, 28, 34, 40, 41, 47, 48, 49, 50, 55, 61, 62, 63, 66, 69, 71, 78, 85, 92, 93, 94, 96, 98, 100, 101, 102, 105, 106, 107, 116, 121, 122, 123, 125, 133, 143, 147, 156, 168, 184, 186, 194, 195, 204, 206, 207, 210, ...
[ [ 0, 155, 136, 0, 18 ], [ 0, 136, 137, 0, 19 ], [ 0, 137, 118, 0, 20 ], [ 1, 261, 260, 0, 20 ], [ 1, 260, 259, 0, 21 ], [ 0, 118, 99, 0, 21 ], [ 0, 99, 80, ...
13
-5seHWKTf
18
23
[ "Lentiana", "Human.exe" ]
[ 23, 75 ]
[ 1, 300, 187, 289, 198, 158, 42, 298, 277, 65, 99 ]
[ 41, 42, 48, 48, 50, 45, 45, 45, 44, 45, 46 ]
[ 40, 351 ]
[ 2, 5, 7, 15, 30, 31, 34, 35, 45, 49, 51, 57, 59, 60, 62, 66, 78, 79, 81, 82, 83, 89, 93, 94, 97, 98, 104, 108, 111, 113, 132, 139, 142, 143, 147, 155, 156, 161, 162, 166, 167, 171, 173, 175, 185, 189, 193, 202, 206, 20...
[ [ 1, 351, 352, 0, 16 ], [ 1, 352, 353, 0, 17 ], [ 1, 353, 335, 0, 18 ], [ 1, 335, 317, 0, 19 ], [ 1, 317, 299, 0, 20 ], [ 1, 299, 281, 0, 21 ], [ 1, 281, 282, ...
13
-6A1vP_rq
21
20
[ "Human.exe", "PKUdhr2" ]
[ 72, 69 ]
[ 69, 326, 85, 281, 407, 214, 275, 18, 87, 71, 242 ]
[ 47, 49, 40, 49, 46, 42, 45, 50, 42, 49, 44 ]
[ 89, 348 ]
[ 3, 4, 6, 8, 9, 12, 19, 22, 27, 31, 33, 48, 50, 52, 60, 62, 67, 72, 76, 80, 97, 98, 102, 105, 109, 110, 116, 121, 128, 131, 132, 134, 141, 147, 150, 151, 158, 160, 163, 172, 174, 175, 180, 182, 187, 189, 199, 211, 215, ...
[ [ 0, 89, 90, 0, 22 ], [ 0, 90, 91, 0, 23 ], [ 0, 91, 92, 0, 24 ], [ 1, 348, 369, 0, 24 ], [ 1, 369, 368, 0, 25 ], [ 0, 92, 93, 0, 25 ], [ 0, 93, 94, 0, ...
13
-6LOg72G6
20
18
[ "_Cinema_", "Tomori Nao" ]
[ 74, 71 ]
[ 104, 192, 352, 186, 126, 177, 341, 13, 253, 225 ]
[ 43, 48, 40, 43, 48, 46, 44, 42, 45, 45 ]
[ 292, 163 ]
[ 5, 6, 9, 11, 17, 20, 23, 26, 27, 33, 47, 51, 65, 66, 71, 73, 75, 78, 86, 88, 89, 92, 103, 107, 111, 112, 114, 120, 125, 134, 139, 146, 149, 152, 154, 158, 159, 164, 166, 167, 168, 169, 173, 182, 185, 189, 197, 198, 200, ...
[ [ 0, 292, 272, 0, 22 ], [ 0, 272, 252, 0, 23 ], [ 0, 252, 232, 0, 24 ], [ 1, 163, 183, 0, 24 ], [ 1, 183, 203, 0, 25 ], [ 0, 232, 231, 0, 25 ], [ 0, 231, 230, ...
13
-87nYoNr4
18
22
[ "-Sophon-", "Human.exe" ]
[ 83, 81 ]
[ 69, 57, 66, 195, 112, 240, 202, 198, 367, 204, 262 ]
[ 46, 48, 40, 43, 49, 42, 43, 44, 50, 40, 44 ]
[ 17, 108 ]
[ 0, 2, 6, 9, 21, 29, 34, 42, 43, 47, 50, 55, 58, 61, 70, 76, 93, 109, 110, 114, 115, 119, 122, 124, 125, 126, 127, 133, 137, 140, 143, 145, 148, 159, 164, 165, 167, 177, 180, 182, 188, 189, 190, 192, 193, 194, 200, 206, 2...
[ [ 0, 17, 16, 0, 20 ], [ 0, 16, 15, 0, 21 ], [ 0, 15, 14, 0, 22 ], [ 0, 14, 13, 0, 23 ], [ 0, 13, 31, 0, 24 ], [ 1, 108, 90, 0, 24 ], [ 1, 90, 72, 0, 25 ...
End of preview. Expand in Data Studio

⚔️ Generals.io High-Rank Replay Dataset 🌟

Overview

This dataset contains a curated collection of 1v1 game replays from the online strategy game generals.io, specifically designed for training high-level reinforcement learning agents 🤖.

  • 🏆 High-Quality Matches: Includes games where at least one participant had a star rating of 70 or higher 📈, ensuring a baseline of quality and strategic depth.
  • Clean Data: Carefully filtered to remove outliers, games with AFK players, and trolls, providing a clean and focused dataset for agent training.
  • 🚀 Proven Effectiveness: An agent trained exclusively on this dataset has been shown to be capable of reaching a 60-star rating, demonstrating the sufficiency and quality of the provided replays.

Game Version

All replays were recorded on the game patch featuring an alternating priority turn system. However, extensive testing has shown that agents trained on this data generalize effectively to the newer priority system without requiring further training.

Dataset Structure & Documentation

The dataset is composed of individual JSON files, where each file represents a single game replay. For a detailed technical description of the replay format, please refer to the official (archived) documentation:

➡️ http://dev.generals.io/replays (via Archive.org)

The structure of each JSON object is as follows:

Field Type Description
version Integer The version number of the replay format.
id String A unique identifier for the replay.
mapWidth Integer The width of the game map in tiles.
mapHeight Integer The height of the game map in tiles.
usernames List[String] A list of the usernames for the players in the game. The index corresponds to the player's turn order.
stars List[Integer] The star rating of each player at the time the game was played.
cities List[Integer] A list of tile indices representing the locations of all neutral cities at the start of the game.
cityArmies List[Integer] The initial army count for each corresponding city in the cities list.
generals List[Integer] The starting tile indices for each player's general (home base).
mountains List[Integer] A list of tile indices for all impassable mountain tiles on the map.
moves List[List[Integer]] The core sequence of game actions. Each inner list is a move tuple, typically representing [player_index, start_tile, end_tile, is_50%_move, turn_number].
afks List[] A list that would contain information on AFK players. This has been filtered and will always be empty.

Usage Example

This dataset is hosted on the Hugging Face Hub and can be loaded directly using the datasets library. Here is a showcase of how to load the dataset and inspect its contents.

from datasets import load_dataset

# 1. Load the dataset directly from the Hugging Face Hub
#    You may need to log in first: huggingface-cli login
print("Loading dataset...")
dataset = load_dataset("strakammm/generals_io_replays")

# The dataset is loaded into a DatasetDict, we'll use the 'train' split
train_dataset = dataset['train']

# 2. Print the total number of replays in the dataset
print(f"\nTotal number of replays: {len(train_dataset)}")

# 3. Iterate over the first few replays to showcase the data
print("\n--- Showcasing first 5 replays ---")
for i in range(5):
    replay = train_dataset[i]
    
    # Get the players and the number of moves
    players = replay['usernames']
    num_moves = len(replay['moves'])
    
    print(f"\nReplay {i+1}:")
    print(f"  Players: {players[0]} vs {players[1]}")
    print(f"  Total moves: {num_moves}")

print("\n------------------------------------")

Citation

If you use this dataset in your research, please cite the following paper:

@misc{generals_rl,
      author    = {Matej Straka, Martin Schmid},
      title     = {Artificial Generals Intelligence: Mastering Generals.io with Reinforcement Learning},
      year      = {2025},
      eprint    = {2507.06825},
      archivePrefix = {arXiv},
      primaryClass = {cs.LG},
}
Downloads last month
146

Paper for strakammm/generals_io_replays