i am making a chess map at the moment.
i would like to make a hastabele and set values like these
chessgird:
8a 8b 8c 8d 8e 8f 8g 8h
7a 7b 7c 7d 7e 7f 7g 7h
6a 6b 6c 6d 6e 6f 6g 6h
5a 5b 5c 5d 5e 5f 5g 5h
4a 4b 4c 4d 4e 4f 4g 4h
3a 3b 3c 3d 3e 3f 3g 3h
2a 2b 2c 2d 2e 2f 2g 2h
1a 1b 1c 1d 1e 1f 1g 1h
my gird
((8x)(1y)) ((8x)(2y)) ((8x)(3y)) ((8x)(4y)) ((8x)(5y)) ((8x)(6y)) ((8x)(7y)) ((8x)(8y))
((7x)(1y)) ((7x)(2y)) ((7x)(3y)) ((7x)(4y)) ((7x)(5y)) ((7x)(6y)) ((7x)(7y)) ((7x)(8y))
((6x)(1y)) ((6x)(2y)) ((6x)(3y)) ((6x)(4y)) ((6x)(5y)) ((6x)(6y)) ((6x)(7y)) ((6x)(8y))
((5x)(1y)) ((5x)(2y)) ((5x)(3y)) ((5x)(4y)) ((5x)(5y)) ((5x)(6y)) ((5x)(7y)) ((5x)(8y))
((4x)(1y)) ((4x)(2y)) ((4x)(3y)) ((4x)(4y)) ((4x)(5y)) ((4x)(6y)) ((4x)(7y)) ((4x)(8y))
((3x)(1y)) ((3x)(2y)) ((3x)(3y)) ((3x)(4y)) ((3x)(5y)) ((3x)(6y)) ((3x)(7y)) ((3x)(8y))
((2x)(1y)) ((2x)(2y)) ((2x)(3y)) ((2x)(4y)) ((2x)(5y)) ((2x)(6y)) ((2x)(7y)) ((2x)(8y))
((1x)(1y)) ((1x)(2y)) ((1x)(3y)) ((1x)(4y)) ((1x)(5y)) ((1x)(6y)) ((1x)(7y)) ((1x)(8y))
white pawn (+1x)
black pawn (-1x)
knight (+1x +2y) (+1x -2y) (-1x +2y) (-1x -2y) (+2x+1y) (+2x -1y) (-2x+1y) (-2x -1y)
bishop (+ax +ay)
rook (+ay) (+ax)
queen (+ax +ay) (+ay) (+ax)
king (-1x) (-1x -1y) (-1y) (-1y +1x) (+1x) (+1x +1y) (+1y) (-1x +1y)
sience there is no way to use letters like x and y i wuold like to know how i can do it by an other way
greetings
i would like to make a hastabele and set values like these
chessgird:
8a 8b 8c 8d 8e 8f 8g 8h
7a 7b 7c 7d 7e 7f 7g 7h
6a 6b 6c 6d 6e 6f 6g 6h
5a 5b 5c 5d 5e 5f 5g 5h
4a 4b 4c 4d 4e 4f 4g 4h
3a 3b 3c 3d 3e 3f 3g 3h
2a 2b 2c 2d 2e 2f 2g 2h
1a 1b 1c 1d 1e 1f 1g 1h
my gird
((8x)(1y)) ((8x)(2y)) ((8x)(3y)) ((8x)(4y)) ((8x)(5y)) ((8x)(6y)) ((8x)(7y)) ((8x)(8y))
((7x)(1y)) ((7x)(2y)) ((7x)(3y)) ((7x)(4y)) ((7x)(5y)) ((7x)(6y)) ((7x)(7y)) ((7x)(8y))
((6x)(1y)) ((6x)(2y)) ((6x)(3y)) ((6x)(4y)) ((6x)(5y)) ((6x)(6y)) ((6x)(7y)) ((6x)(8y))
((5x)(1y)) ((5x)(2y)) ((5x)(3y)) ((5x)(4y)) ((5x)(5y)) ((5x)(6y)) ((5x)(7y)) ((5x)(8y))
((4x)(1y)) ((4x)(2y)) ((4x)(3y)) ((4x)(4y)) ((4x)(5y)) ((4x)(6y)) ((4x)(7y)) ((4x)(8y))
((3x)(1y)) ((3x)(2y)) ((3x)(3y)) ((3x)(4y)) ((3x)(5y)) ((3x)(6y)) ((3x)(7y)) ((3x)(8y))
((2x)(1y)) ((2x)(2y)) ((2x)(3y)) ((2x)(4y)) ((2x)(5y)) ((2x)(6y)) ((2x)(7y)) ((2x)(8y))
((1x)(1y)) ((1x)(2y)) ((1x)(3y)) ((1x)(4y)) ((1x)(5y)) ((1x)(6y)) ((1x)(7y)) ((1x)(8y))
white pawn (+1x)
black pawn (-1x)
knight (+1x +2y) (+1x -2y) (-1x +2y) (-1x -2y) (+2x+1y) (+2x -1y) (-2x+1y) (-2x -1y)
bishop (+ax +ay)
rook (+ay) (+ax)
queen (+ax +ay) (+ay) (+ax)
king (-1x) (-1x -1y) (-1y) (-1y +1x) (+1x) (+1x +1y) (+1y) (-1x +1y)
sience there is no way to use letters like x and y i wuold like to know how i can do it by an other way
greetings