I tried placing the attackable helper functions in a separate file but couldn't get the imports right for some reason π€ any idea? it was a file at the same level named helpers.ts. I want to add it there so we can use it on the BE as well.
Highlight current player row
Showing attackable range:
11 attackable:
12 not:
also trying to replace player ID in url for attack action:
trying to attack using curl (by-passing FE validations):
https://github.com/MattGibney/DarkThrone/issues/31
Still to do backend validation.
I tried placing the attackable helper functions in a separate file but couldn't get the imports right for some reason π€ any idea? it was a file at the same level named helpers.ts. I want to add it there so we can use it on the BE as well.
Highlight current player row
Showing attackable range:
11 attackable:
12 not:
also trying to replace player ID in url for attack action:
trying to attack using curl (by-passing FE validations):