Skip to content
Sign upLog in
Profile icon

im bad at this

@MatthewXia
i suck at coding
  • Tic Tac Toe

    Cover page
    Made with Javai suck at coding
    Recent comments (0)
  • snake game

    Cover page
    Made with Python
    Recent comments (0)
Repls
Community
MatthewXia
MatthewXia
shared a Post
2 years ago
2
color game
ok ik its bad but pls dont judge me
color game?
Python
MatthewXia
MatthewXia
shared a Post
2 years ago
4
so lik i coded a snake game and ya
snake game
Python
SeamusDonahue
SeamusDonahue
the input lag is really annoying and sometimes kills me, but other than that it's really cool!2 years ago
Srikar2008
Srikar2008
Wow, this is really good. I found a glitch though If you go the opposite way of what you just turned, the game resets for ex., you go left, and then go right, it resets. yea so anyway, cool project!2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
2
how i got here, i dont know. but i did so deal with it
ok sure bye
Python
tankerguy1917
tankerguy1917
this is so cool. The scoring system is really good and the comp isn't too easy or too difficult.2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
afkbjhafiiafi uhwh;UHheOU'[eu {"A"{ nhAE"A'tgew'[IEihg[''hAA WTR
EpicGamer007
EpicGamer007
Try finding an external jar(You probably won't find many though). I hate to say this but for ai, I suggest python. 2 years ago
mwilki7
mwilki7
Look into the minimax algorithm, there should be many examples that use tic tac toe.2 years ago
Coder100
Coder100
there's a lot of theory to learn.2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
idk i dont know idont know i dontknow
Coder100
Coder100
Abstract classes are classes that can be implemented. Something like: abstract class Animal { abstract void Eat(String food); abstract void Talk(String talk); } then we can implement it: class Lion extends Animal { void Eat(String animal) { System.out.Println("The lion ate a " + meat + "'s meat"); }; void Talk(String talk) { System.out.Println("Roar! Translation: " + talk); }; } `2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
i have no idea y. i hve now ideapo. bafjnafuawf of aau;wf ab;aw b; waoj afw aw
Coder100
Coder100
A hashmap is like a dictionary: import java.util.HashMap; // import the HashMap class HashMap myDict = new HashMap(); So the first type argument (``) denotes the value (definition) import java.util.HashMap; // import the HashMap class HashMap myDict = new HashMap(); // Set some values myDict.put("myWord", "myDefinition"); myDict.put("SomethingElse", "mynewDef"); // Now to get a value: myDict.get("myWord"); // Delete a value: myDict.remove("myWord"); // Delete all values: myDict.clear(); `2 years ago
k9chelsea2
k9chelsea2
[this] (https://www.educative.io/edpresso/what-is-a-hashmap-in-java) [this] (https://www.w3schools.com/java/java_hashmap.asp) [this] (https://www.callicoder.com/java-hashmap/) and [this] (https://www.geeksforgeeks.org/java-util-hashmap-in-java-with-examples/) might help2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
i have no idea........................................................................................really..........................................
Coder100
Coder100
So like, if a person was a class: class Person { public name() {} private creditCard() {} } Person me = new Person(); Others should be able to call me.name() to get my name, but shouldn't be able to call me.creditCard() because only I can access that, nothing else can.2 years ago
Coder100
Coder100
class Something { public a() { } private b() { } } Something c = new Something(); c.a(); // public so you can call it c.b(); // ERROR is private so you can't `2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
i learned this with trouble. would be glad if someone could help pls
Coder100
Coder100
They are optional and will just help readability. For example: class Human { private final String name; Human(String name) { this.name = name; } get String getName() { return name; } } now you can use .getName() to get the name of a human in question.2 years ago
Coder100
Coder100
Hi, they are basically sugar.2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
i have no idea. pls help. (but u dont have to if to decide not to)
Coder100
Coder100
For example: String name = "Coder100"; Console.WriteLine("Hello world"); Console.WriteLine("Your name is "+name); if you would want to do that a lot of times, at the end, it will be pretty tedious. Using a function will simplify that: void greet(String name) { String name = "name"; Console.WriteLine("Hello world"); Console.WriteLine("Your name is "+name); } greet("Coder100"); `2 years ago
Coder100
Coder100
In case of java, that would be a method.2 years ago
Coder100
Coder100
A functions a block of code that can be used to repeat code more than one time.2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
why do i need 5 words here? and 50 characters?
octopyBot
octopyBot
mods decide that so that repl isn't flooding with spam projects like your i am cool one.2 years ago
Coder100
Coder100
Hi, that is to prevent spam.2 years ago
PattanAhmed
PattanAhmed
@MatthewXia Hi, People can themselves decide that their posts are of no meaning easily... Like if you wanted to post something like basic silly things like that just loops through a statement then, it's called Low Effort Post And If you wanted to post something like your hard-work projects then, You can post it without any hesitation as it is called High Effort Post I am pretty sure that you may post High Effort Posts here :) *Hope this helps Please mark my answer if this helps*2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
pls help. im struggling. :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:
CodeLongAndPros
CodeLongAndPros
An instance is something you can use. If you are in your house, your Samsung is an instance of a Tele-Vision. Your iPhone 6S is an instance of a smart-phone. ‘instanceof’ tells you what the instance came from. For example (this will not work) INSTANCEOF Samsung yields TV INSTANCEOF iPhone yields phone `2 years ago
Coder100
Coder100
instanceof is just to see if an object is created by a class: class Something { private final int name; Something (int name) { this.name = name; } } class Something2 { private final int name; Something (int name) { this.name = name; } } Something something = new Something(2); Something2 something2 = new Something2(3); something instanceof Something; // true something2 instanceof Something; // false `2 years ago
Coder100
Coder100
whats your question?2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
2
im not a tattle. my mum made me do this cause she doesn't like me looking at drug names
Coder100
Coder100
well, if it's not posted, just ignore it.2 years ago
k9chelsea2
k9chelsea2
looks ok to me, however talking about drugs may violate a guidline if its a repl post I reccomend reporting it or if you like i can give it to a moderator to see if its ok (you can do this as well via the repl discord server)2 years ago
InvisibleOne
InvisibleOne
You could just not look at it2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
matthewproskils
matthewproskils
Cycles are total, upvvotes are just for 1 post2 years ago
Coder100
Coder100
they are used interchangeably.2 years ago
Coder100
Coder100
nope2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
yes no maybe so????????????????????????????????????????????????????????????????? i dont know
k9chelsea2
k9chelsea2
there is a [terms of service] (https://repl.it/site/terms) page this is the [talk guidelines] (https://repl.it/talk/announcements/Repl-Talk-Rules-and-Guidelines-README/22109)2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
Coder100
Coder100
https://repl.it/talk/announcements/Repl-Talk-Rules-and-Guidelines-README/22109 Read2 years ago
Coder100
Coder100
It's against the rules and you can be banned.2 years ago
Coder100
Coder100
Hi, it's when someone uses alts to upvote their own posts/comments2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
wut r upvoted even for? i dont know. i need help. anyone who can answer ill upvote 5 of ur repls
k9chelsea2
k9chelsea2
upvotes don't really have a meaning at the moment they can be used for reputation points but in reality they don't have a meaning. Repl.it have plans for cycles (upvotes) in the future2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
????? pls help me understand. i dont know wut to write to get this to 50 words so I guess ill write dis. is dis enough?
k9chelsea2
k9chelsea2
it means cycles or upvotes, an upvote is the up arrow thingy that appears next to a post or a comment. every time someone upvotes a comment or a post or marks the comment as correct answer they will the number will increase2 years ago
MatthewXia
MatthewXia
shared a Post
2 years ago
1
da coordinates are screwed up sry, u have to press enter before u type the second coordinate.
Tic Tac Toe-3
Java