I\'m currently making a tic-tac-toe program with AI and i\'m having a bit of a trouble translating this line of code (python) :
RANKS = dict([(4,3),
In C++ this would be a std::unordered_map
std::unordered_map
#include std::unordered_map dict { { { 4, 3 }, { 0, 2 }, { 2, 2 }, { 6, 2 }, { 8, 2 }, { 1, 1 }, { 3, 1 }, { 5, 1 }, { 7, 1 } } };