im bad at this
@MatthewXia
i suck at coding
SeamusDonahue the input lag is really annoying and sometimes kills me, but other than that it's really cool!2 years ago
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
tankerguy1917 this is so cool. The scoring system is really good and the comp isn't too easy or too difficult.2 years ago
afkbjhafiiafi uhwh;UHheOU'[eu {"A"{ nhAE"A'tgew'[IEihg[''hAA WTR
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 Look into the minimax algorithm, there should be many examples that use tic tac toe.2 years ago
idk i dont know idont know i dontknow
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
i have no idea y. i hve now ideapo. bafjnafuawf of aau;wf ab;aw b; waoj afw aw
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 [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
i have no idea........................................................................................really..........................................
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 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
i learned this with trouble. would be glad if someone could help pls
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
i have no idea. pls help. (but u dont have to if to decide not to)
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
why do i need 5 words here? and 50 characters?
octopyBot mods decide that so that repl isn't flooding with spam projects like your i am cool one.2 years ago
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
pls help. im struggling. :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:
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 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
im not a tattle. my mum made me do this cause she doesn't like me looking at drug names
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
no? or yes? cause idk. help? no?
yes no maybe so????????????????????????????????????????????????????????????????? i dont know
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
cycle farming or cycle farmer
wut r upvoted even for? i dont know. i need help. anyone who can answer ill upvote 5 of ur repls
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
????? 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 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
da coordinates are screwed up sry, u have to press enter before u type the second coordinate.
Java