Connect-4
Donated on 2/3/1995
Contains connect-4 positions
Dataset Characteristics
Multivariate, Spatial
Subject Area
Games
Associated Tasks
Classification
Feature Type
Categorical
# Instances
67557
# Features
42
Dataset Information
Additional Information
This database contains all legal 8-ply positions in the game of connect-4 in which neither player has won yet, and in which the next move is not forced. x is the first player; o the second. The outcome class is the game theoretical value for the first player.
Has Missing Values?
No
Variables Table
Variable Name | Role | Type | Description | Units | Missing Values |
---|---|---|---|---|---|
a1 | Feature | Categorical | no | ||
a2 | Feature | Categorical | no | ||
a3 | Feature | Categorical | no | ||
a4 | Feature | Categorical | no | ||
a5 | Feature | Categorical | no | ||
a6 | Feature | Categorical | no | ||
b1 | Feature | Categorical | no | ||
b2 | Feature | Categorical | no | ||
b3 | Feature | Categorical | no | ||
b4 | Feature | Categorical | no |
0 to 10 of 43
Additional Variable Information
Attribute Information: (x=player x has taken, o=player o has taken, b=blank) The board is numbered like: 6 . . . . . . . 5 . . . . . . . 4 . . . . . . . 3 . . . . . . . 2 . . . . . . . 1 . . . . . . . a b c d e f g 1. a1: {x,o,b} 2. a2: {x,o,b} 3. a3: {x,o,b} 4. a4: {x,o,b} 5. a5: {x,o,b} 6. a6: {x,o,b} 7. b1: {x,o,b} 8. b2: {x,o,b} 9. b3: {x,o,b} 10. b4: {x,o,b} 11. b5: {x,o,b} 12. b6: {x,o,b} 13. c1: {x,o,b} 14. c2: {x,o,b} 15. c3: {x,o,b} 16. c4: {x,o,b} 17. c5: {x,o,b} 18. c6: {x,o,b} 19. d1: {x,o,b} 20. d2: {x,o,b} 21. d3: {x,o,b} 22. d4: {x,o,b} 23. d5: {x,o,b} 24. d6: {x,o,b} 25. e1: {x,o,b} 26. e2: {x,o,b} 27. e3: {x,o,b} 28. e4: {x,o,b} 29. e5: {x,o,b} 30. e6: {x,o,b} 31. f1: {x,o,b} 32. f2: {x,o,b} 33. f3: {x,o,b} 34. f4: {x,o,b} 35. f5: {x,o,b} 36. f6: {x,o,b} 37. g1: {x,o,b} 38. g2: {x,o,b} 39. g3: {x,o,b} 40. g4: {x,o,b} 41. g5: {x,o,b} 42. g6: {x,o,b} 43. Class: {win,loss,draw}
Dataset Files
File | Size |
---|---|
connect-4.data.Z | 394 KB |
connect-4.names | 1.8 KB |
Index | 122 Bytes |
Reviews
There are no reviews for this dataset yet.
pip install ucimlrepo
from ucimlrepo import fetch_ucirepo # fetch dataset connect_4 = fetch_ucirepo(id=26) # data (as pandas dataframes) X = connect_4.data.features y = connect_4.data.targets # metadata print(connect_4.metadata) # variable information print(connect_4.variables)
Tromp, J. (1995). Connect-4 [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C59P43.
Creators
John Tromp
DOI
License
This dataset is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.
This allows for the sharing and adaptation of the datasets for any purpose, provided that the appropriate credit is given.