Skip to content

Instantly share code, notes, and snippets.

View campbecf's full-sized avatar

Clifford Campbell campbecf

  • Tribute Technology
View GitHub Profile
# 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.'
"table---class" : "",
"table___head" : [
{
"text" : "Table Heading 1"
},
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 ){