+ 2
Java project for beginners
Any simple game
18 Answers
+ 4
I wrote a little program that details what I stated. I purposely put a lot of comments that hopefully with explain some things.
Feel free to copy the code to an IDE, change things, and learn from it. If you have a question I will be happy to answer😊
Note* the code does not work in sololearn it throws a error because of the input. I have on sololearn for looking at the code only.
Use the link to actually run the code. It works on computer and mobile.
Link : https://RPSComplexJ.adamkollgaard.repl.run
Code:
https://code.sololearn.com/ct9qvUI2e0Cc/?ref=app
+ 6
maybe a number guessing game:
------------
int number = random(lowest,heighest)
int guess = input()
while true
guess = input()
if guess > number
print("too big")
elseif guess < number
print("too small")
elseif guess == number
print("got it")
break
-----------
idk any java so this is just pseudo code
(sololearn cant handle this code tho so use an ide)
+ 5
i recommend exercises like:
1.print the largest number in array of int.
2. Sort and print an array of int-s
3. merge two sorted int arrays[ ] and print the result.
4. Open a txt file, print each line starting with it's number.
you are invited to see the challanges that i have coded...
all the best 😁👌🏼
+ 4
Everytime I learn a new language I make a rock, paper, scissors game.
If you want a harder challenge try to make the computer guess what you will pick instead of randomly choosing an option.
Hint: have the computer guess based on the last turn. Have it go back into previous turns to see what you did after that.
If the last turn you picked rock the computer checks to see what you did after rock in a previous turn. If you picked paper after rock. The computer guess you will pick paper again.
+ 3
how much of a beginner are you?
+ 3
Sandesh Mandhare whats the most advanced project you ever made in java?
+ 3
a command line game?
+ 3
Sandesh Mandhare dm if you need help
+ 2
Ok thanks
+ 2
Adam Kollgaard i would love to see your code, is that possible?
i have never worked with ai, so this could be cool
+ 1
Know only java core language
+ 1
This is my first attempt
So I want any suggestions related to write code to make any simple game because this is kind of assignment given by my teacher.that i can make and explain easily and run also
+ 1
You can also give me code for reference also
+ 1
Yess
+ 1
Thanks for this reply .If you also get another idea please send me back
+ 1
Yess sure
+ 1
Can you send me sample code or simple algorithms steps it will help me a lot
+ 1
Thanks