Profile icon

# Ryan Gant

@gantr833
• ## 21

Cover page

for coding club

• ## Rock paper scissors

a rock paper scissors game against a computer.

• ## Magic Tutorial

shared a Post
4 years ago
Random Card Generator
This code generates a random playing card.
Node.js
gantr833
shared a Post
4 years ago
In this game you will be playing against an AI. You can raise the counter by 1, 2, or 3. Then the AI will go. If the other person reaches 20, you basi
Node.js
georgina3
i know how you can't win when you type 1 al types 3 when you type 2 al types 2 when you type 3 al types 12 years ago
Myles123456
this is really good actually i just always lose it seems like 3 years ago
TuanNguyen8
My teacher teached me a trick to play this at my extra class when in was a kid. The objective is to hit n(the number that if u hit u will lose)-1 first. U have to go first if (n-1)/(k(the max value that u can add)+1)=m>0. Then u will add m. Else u have to let the opponent go first. Then on the other turns, the sum of your and your opponents point have to equal to m. But in this case (21-1)/(4+1)=0 so u have to let the bot go first but u cant do that because “0” is an invalid value so u cant win 4 years ago
gantr833
shared a Post
4 years ago
Who can create the coolest thing in just one line of code.
ChristianThone
@gantr833 for i in range(1000): print("One Line Code Challenge. This line prints One-Thousand Times.") `4 years ago
chilaxan
print(eval(f"(LB=Lc='X',b=L:int(input(a)),d=range(9)],e=Lp=print:[a,p('_'7),[p('[4m',a[x:x+3],'[0m',sep='|')for x in[0,3,6]]:(Lb:b]9if 1in[all([b==a[int(x)]for x in str(list(map(ord,'ÒřʦɶơĂ͈ö'))[y])])for y in range(8)]else a)((Lb,c,d:[b.pop(c),b.insert(c,d),b)([e(d),e(a)],a,d.index(b(c)),c)if['X']9!=a!=['O']9else a,c):(L:'X'(a==['X']9)+'O'(a==['O']9)or'C')({'B('9}[' ']9){',a))'*4}))('O')".replace('L','lambda a,'))) One line tic tac toe4 years ago
ash15khng
Swift: fatalError("lol") `4 years ago
gantr833
shared a Post
4 years ago
Magic tricks that you can do in a flash.
HTML, CSS, JS
gantr833
shared a Post
4 years ago
A rock paper scissors against a computer.
Node.js
gantr833
Have Fun! 4 years ago
gantr833
shared a Post
4 years ago
A simple number guessing game built with javascript.
Node.js
JTLavi
Your program are really cool :)2 years ago
gantr833
Hope you have fun!4 years ago
gantr833
shared a Post
5 years ago
https://BrightUrbanMachinecodeinstruction--gantr833.repl.co
gantr833
shared a Post
5 years ago
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLoly-8W21j9g-f7wQfX2QslEeMzB5TFFh1hcyOyPcx6XkeR:www.nintendo.com/switch/etRgxnAu0zRX4bmWnt9K628
gantr833
shared a Post
5 years ago
https://DefensiveDecentProcedure--gantr833.repl.co
gantr833
Don't you agree with me.5 years ago