Skip to main content
Code Review

Return to Question

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link
  1. 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.
  2. You can "jump" over the walls as long as you end up on a valid space
  3. You can cheat and go clockwise at the beginning to win (but, I mean, you're playing a game in excel)
  4. 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.
  5. 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)
  6. (削除) I couldn't figure out how to get some Global or Public variables that would persist through the form, so speed and location information is stored in cells A100:A103 and A200:A203. (削除ここまで) Maybe this is a good thing as described by Matt's Mug Matt's Mug
  1. 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.
  2. You can "jump" over the walls as long as you end up on a valid space
  3. You can cheat and go clockwise at the beginning to win (but, I mean, you're playing a game in excel)
  4. 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.
  5. 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)
  6. (削除) I couldn't figure out how to get some Global or Public variables that would persist through the form, so speed and location information is stored in cells A100:A103 and A200:A203. (削除ここまで) Maybe this is a good thing as described by Matt's Mug
  1. 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.
  2. You can "jump" over the walls as long as you end up on a valid space
  3. You can cheat and go clockwise at the beginning to win (but, I mean, you're playing a game in excel)
  4. 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.
  5. 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)
  6. (削除) I couldn't figure out how to get some Global or Public variables that would persist through the form, so speed and location information is stored in cells A100:A103 and A200:A203. (削除ここまで) Maybe this is a good thing as described by Matt's Mug
replaced http://meta.codereview.stackexchange.com/ with https://codereview.meta.stackexchange.com/
Source Link

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

added 4 characters in body
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60

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.

Updated the question to reflect updated code
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
Updated the question to reflect updated code
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
added 479 characters in body
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
added images and gameplay
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
added some known flaws so I don't forget
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
added 61 characters in body
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
added 131 characters in body
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
Tweeted twitter.com/#!/StackCodeReview/status/631669993034395648
color was wrong
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
added 4 characters in body; edited tags
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
Source Link
Raystafarian
  • 7.3k
  • 1
  • 23
  • 60
Loading
lang-vb

AltStyle によって変換されたページ (->オリジナル) /