This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
prompt = '--> ' | |
def test_user_input(number) | |
return "\n '#{number}' is an EVEN number. \n" if number.even? | |
" '#{number}' is an odd number. " | |
end | |
puts '' | |
puts 'Please enter a number, odd or even.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"table---class" : "", | |
"table___head" : [ | |
{ | |
"text" : "Table Heading 1" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.howeszy.neighborhood.pcg.tileroom | |
import com.howeszy.neighborhood.pcg.TileRoom | |
import com.howeszy.neighborhood.pcg.TileMap | |
import java.awt.Color | |
import java.util.Random | |
class Corridor extends TileRoom{ | |
Corridor(Integer x1, Integer y1, Integer x2, Integer y2 ){ | |
this(x1, y1, x2, y2, null, null, Color.WHITE.getRGB()) | |
} | |
Corridor(Integer x1, Integer y1, Integer x2, Integer y2, Color primaryColor ){ |