- To win you must land on the finish line, not just cross over it. Therefor you won't trigger a win condition and could, in fact, trigger a loss if you run into a wall after crossing. The only thing I can think of us to check if a player begins in the lower-left quadrant of the board, and if so send them to a function to determine if they've won, otherwise send them back. This seems suboptimal.
- You can "jump" over the walls as long as you end up on a valid space
- You can cheat and go clockwise at the beginning to win (but, I mean, you're playing a game in excel)
- With enough speed you can jump out of the game board and run all over the place. I could just check row/column don't exceed (y,x), but that seems sloppy.
- I'm pretty sure it will error if you try to land on a cell that doesn't exist (e.g. row or column < 0)
(削除) I couldn't figure out how to get someMaybe this is a good thing as described by Matt's Mug Matt's MugGlobal
orPublic
variables that would persist through the form, so speed and location information is stored in cells A100:A103 and A200:A203. (削除ここまで)
- To win you must land on the finish line, not just cross over it. Therefor you won't trigger a win condition and could, in fact, trigger a loss if you run into a wall after crossing. The only thing I can think of us to check if a player begins in the lower-left quadrant of the board, and if so send them to a function to determine if they've won, otherwise send them back. This seems suboptimal.
- You can "jump" over the walls as long as you end up on a valid space
- You can cheat and go clockwise at the beginning to win (but, I mean, you're playing a game in excel)
- With enough speed you can jump out of the game board and run all over the place. I could just check row/column don't exceed (y,x), but that seems sloppy.
- I'm pretty sure it will error if you try to land on a cell that doesn't exist (e.g. row or column < 0)
(削除) I couldn't figure out how to get someMaybe this is a good thing as described by Matt's MugGlobal
orPublic
variables that would persist through the form, so speed and location information is stored in cells A100:A103 and A200:A203. (削除ここまで)
- To win you must land on the finish line, not just cross over it. Therefor you won't trigger a win condition and could, in fact, trigger a loss if you run into a wall after crossing. The only thing I can think of us to check if a player begins in the lower-left quadrant of the board, and if so send them to a function to determine if they've won, otherwise send them back. This seems suboptimal.
- You can "jump" over the walls as long as you end up on a valid space
- You can cheat and go clockwise at the beginning to win (but, I mean, you're playing a game in excel)
- With enough speed you can jump out of the game board and run all over the place. I could just check row/column don't exceed (y,x), but that seems sloppy.
- I'm pretty sure it will error if you try to land on a cell that doesn't exist (e.g. row or column < 0)
(削除) I couldn't figure out how to get someMaybe this is a good thing as described by Matt's MugGlobal
orPublic
variables that would persist through the form, so speed and location information is stored in cells A100:A103 and A200:A203. (削除ここまで)
So, I took a look at the August Challenge August Challenge:
The top-voted answer is Racetrack Racetrack 1: "In the game of Racetrack 2, cars race around a track bounded by two concentric closed loops drawn on a square grid. Implement a program that plays this game."
1Links to answer in meta
2Links to wikipedia article of game
So, I took a look at the August Challenge:
The top-voted answer is Racetrack 1: "In the game of Racetrack 2, cars race around a track bounded by two concentric closed loops drawn on a square grid. Implement a program that plays this game."
1Links to answer in meta
2Links to wikipedia article of game
So, I took a look at the August Challenge:
The top-voted answer is Racetrack 1: "In the game of Racetrack 2, cars race around a track bounded by two concentric closed loops drawn on a square grid. Implement a program that plays this game."
1Links to answer in meta
2Links to wikipedia article of game
and I thought, "hey, selfself, Iyou should try that" - but given I only really know VBA, I did it in excel. Maybe that's not the intention of the challenge, but I did it anyway.
and I thought, "hey, self, I should try that" - but given I only really know VBA, I did it in excel. Maybe that's not the intention of the challenge, but I did it anyway.
and I thought, "hey, self, you should try that" - but given I only really know VBA, I did it in excel. Maybe that's not the intention of the challenge, but I did it anyway.