Skip to main content
Commonmark migration
Source Link

#Today, we'll be generating a map for a roguelike RPG! ##Example Map:

Today, we'll be generating a map for a roguelike RPG!

Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

##Rules

Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.

#Today, we'll be generating a map for a roguelike RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.

Today, we'll be generating a map for a roguelike RPG!

Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.
deleted 1 character in body; edited title
Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135

Generate a map for a rogue-likeroguelike

#Today, we'll be generating a map for a rogue-likeroguelike RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.

Generate a map for a rogue-like

#Today, we'll be generating a map for a rogue-like RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.

Generate a map for a roguelike

#Today, we'll be generating a map for a roguelike RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.
Tweeted twitter.com/StackCodeGolf/status/808869580173180929
deleted 86 characters in body
Source Link
Pavel
  • 9.4k
  • 1
  • 52
  • 95

#Today, we'll be generating a map for a rogue-like RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring (You may assume your language's built in random number generator is uniformly random).

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.

#Today, we'll be generating a map for a rogue-like RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring (You may assume your language's built in random number generator is uniformly random).

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.

#Today, we'll be generating a map for a rogue-like RPG! ##Example Map:

##########
####    F#
####    ##
##    C#C#
#     ## #
# C   #E #
####  #  #
#        #
#P       #
##########

# are walls, P is the player's starting location, F is the finish that must be reached, C are coins that can be collected, and E are enemies that can be fought.

##Map specifications:

  • Height and Width should both be between 10 and 39, inclusive. Height does not have to equal width.
  • The maps borders should be filled in with walls.
  • P should be placed in the bottom left corner.
  • F should be placed in the top right corner.
  • There should be between 1 and 3 enemies.
  • There should be between 2 and 4 coins.
  • There should be some amount of walls in the middle. There should be a path to get from P to Every C, E, and F, keeping in mind that the player cannot move diagonally.
  • Every possible combination should have some chance of occurring.

##Rules

  • Fewest byte program wins.
  • Your program should not take any input.
  • Your program may not exit with an error (non-fatal output is STDERR is ok, but we can't have our rogue-like crash after map generation!)
  • A single trailing newline is allowed and trailing space is allowed.
  • No other output is allowed.
deleted 4 characters in body
Source Link
Pavel
  • 9.4k
  • 1
  • 52
  • 95
Loading
Tags
Link
AdmBorkBork
  • 43.5k
  • 5
  • 103
  • 284
Loading
edited body
Source Link
Riker
  • 7.9k
  • 4
  • 39
  • 73
Loading
spelling
Link
user41805
  • 13.2k
  • 6
  • 42
  • 88
Loading
Source Link
Pavel
  • 9.4k
  • 1
  • 52
  • 95
Loading