Kush-Gold-Rush / MineShaft

An Gym compatible environment for Artificial Intelligence Reinforcement Agent to play GameFi
MIT License
0 stars 9 forks source link

[bug] fatal test case for keyboard does not match with BaseEnv #37

Closed NewJerseyStyle closed 2 years ago

NewJerseyStyle commented 2 years ago

The keyboard action space does not match with the action space defined in BaseEnv ACTION_SHAPE = (2, 101 + (2 + 2 + 1)) (101 keys + mouse (move + click + scroll), 2 channels of press & release)

NewJerseyStyle commented 2 years ago

Updated keyboard layout for AI now:

[
    "'", ',', '-', '.', '/', '0', '1', '2', '3', '4', '5',
    '6', '7', '8', '9', ';', '=', '[', '\\', ']', '`', 'a',
    'b', 'c', 'd', 'e','f', 'g', 'h', 'i', 'j', 'k', 'l',
    'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
    'x', 'y', 'z', 'altleft', 'altright', 'backspace',
    'capslock', 'ctrlleft', 'ctrlright', 'delete', 'down',
    'end', 'enter', 'esc', 'f1', 'f10', 'f11', 'f12', 'f13',
    'f14', 'f15', 'f16', 'f17', 'f18', 'f19', 'f2', 'f20',
    'f21', 'f22', 'f23', 'f24', 'f3', 'f4', 'f5', 'f6', 'f7',
    'f8', 'f9', 'insert', 'left', 'num0', 'num1', 'num2',
    'num3', 'num4', 'num5', 'num6', 'num7', 'num8', 'num9',
    'numlock', 'pagedown', 'pageup', 'right', 'shiftleft',
    'shiftright', 'space', 'tab', 'up', 'home'
]