Ejemplo n.º 1
0
func roll(time) {
	done := 0
	for done < time {
		num := r.Strings(dice)
		fmt.Println(c.Rc() + num)
	}
}
Ejemplo n.º 2
0
func ayylmao() {
	fmt.Println(c.Clear + c.Red + "Ayy..")
	time.Sleep(1000 * time.Millisecond)
	for {
		fmt.Print(c.Rc() + "LMAO" + " ")
	}
}
Ejemplo n.º 3
0
func main() {
	x := 0
	for x < 10000 {
		fmt.Print(c.Rc() + "meow" + c.X)
		x += 1
	}
	fmt.Print(c.CL)
}
Ejemplo n.º 4
0
func main() {

	fmt.Println(c.Clear + c.Multi("Welcome to the Magic Eightball"))
	for {
		promt := i.StringInput(c.Yellow + "What is your question  > ")
		if promt == "love" {
			fmt.Println(c.Rc() + "I dont deal with peoples love lives")
		} else if promt == "death" {
			fmt.Println(c.Rc() + "You are morbid")
		} else {
			rand.Seed(42)
			answers := []string{
				"It is certain",
				"It is decidedly so",
				"Without a doubt",
				"Yes definitely",
				"You may rely on it",
				"As I see it yes",
				"Most likely",
				"Outlook good",
				"Yes",
				"Signs point to yes",
				"Reply hazy try again",
				"Ask again later",
				"Better not tell you now",
				"Cannot predict now",
				"Concentrate and ask again",
				"Don't count on it",
				"My reply is no",
				"My sources say no",
				"Outlook not so good",
				"Very doubtful",
			}
			fmt.Println(c.Rc() + "Magic 8-Ball says:" + answers[rand.Intn(len(answers))])
		}
	}

}
Ejemplo n.º 5
0
func ColorTest() {
	fmt.Println(c.R + "Red" + c.X)
	fmt.Println(c.O + "Orange" + c.X)
	fmt.Println(c.Y + "Yellow" + c.X)
	fmt.Println(c.G + "Green" + c.X)
	fmt.Println(c.C + "Cyan" + c.X)
	fmt.Println(c.B + "Blue" + c.X)
	fmt.Println(c.M + "Magenta" + c.X)
	fmt.Println(c.V + "Violet" + c.X)
	fmt.Println(c.B0 + "Base 0" + c.X)
	fmt.Println(c.B00 + "Base 00" + c.X)
	fmt.Println(c.B1 + "Base 1" + c.X)
	fmt.Println(c.B01 + "Base 01" + c.X)
	fmt.Println(c.B2 + "Base 2" + c.X)
	fmt.Println(c.B02 + "Base 02" + c.X)
	fmt.Println(c.B3 + "Base 3" + c.X)
	fmt.Println(c.B03 + "Base 03" + c.X)
	fmt.Println(c.Multi("MultiColored") + c.X)
	fmt.Println(c.Rc() + "Random" + c.X)
}
Ejemplo n.º 6
0
Archivo: lib.go Proyecto: tslnc04/hello
func PrintColor(message string) {
	for {
		fmt.Print(c.Rc() + message + " " + c.X)
	}
}
Ejemplo n.º 7
0
func PrintForevah(message string) {
	//Prints "Hello World" in a random color forever in a loop.
	for {
		fmt.Print(c.Rc() + "Hello " + message + c.X)
	}
}
Ejemplo n.º 8
0
func PrintRandom(message string) {
	//Prints "Hello World" to the command line in random color.
	fmt.Println(c.Clear + c.Rc() + "Hello " + message + c.X)
}
Ejemplo n.º 9
0
func Color(message string) {
	for {
		fmt.Println(c.Rc() + message)
	}
}
Ejemplo n.º 10
0
func plain(text string) {
	fmt.Println(c.Clear + c.Rc() + text + c.Reset)
}
Ejemplo n.º 11
0
func color(message string) {
	fmt.Print(c.Clear)
	for {
		fmt.Print(c.Rc() + message + c.Reset)
	}
}
Ejemplo n.º 12
0
func nyan(message string) {
	fmt.Print(c.Clear)
	for {
		fmt.Print(c.Rc() + message + " ")
	}
}
Ejemplo n.º 13
0
func color(message string) {
	fmt.Println(c.Clear + c.Rc() + message)
}
Ejemplo n.º 14
0
func PrintRandom(message string) {
	fmt.Println(c.Rc() + message + c.X)
}
Ejemplo n.º 15
0
func FillScreen(message string) {
	for {
		fmt.Print(c.Rc() + message + " ")
	}
}