Please can anyone help me to make a simple simple Java code to force the game scissor,paper,r ock to work ?
for example i know how to do it in Visual Basic but not in java,for example this is kind of what i want
Rock beats Scissor
Paper beats rock
Scissor beats paper
msgbox 'Enter your choce'
If txta.text = "Rock" then
lbldisplay.capt ion = "I choose paper,so i beat you"
elseif
txta.text = "Paper" then
lbldisplay.capt ion = "I choose rock,so you win"
etc etc etc thats all i want i just dont know how Java works pretty well yet,than you so much to all of u who at least watched the topic.
11 2411
Please can anyone help me to make a simple simple Java code to force the game scissor,paper,r ock to work ?
for example i know how to do it in Visual Basic but not in java,for example this is kind of what i want
Rock beats Scissor
Paper beats rock
Scissor beats paper
msgbox 'Enter your choce'
If txta.text = "Rock" then
lbldisplay.capt ion = "I choose paper,so i beat you"
elseif
txta.text = "Paper" then
lbldisplay.capt ion = "I choose rock,so you win"
etc etc etc thats all i want i just dont know how Java works pretty well yet,than you so much to all of u who at least watched the topic.
If you don't know any Java then you are better off reading a Java tutorial.
If you don't have time to go through the whole thing now, you can just browse to the specific topics you want.
If you don't know any Java then you are better off reading a Java tutorial.
If you don't have time to go through the whole thing now, you can just browse to the specific topics you want.
i did already but didnt found anything that looks like what i want,i've found large codes of the program,but thats not what im looking for though :(
i did already but didnt found anything that looks like what i want,i've found large codes of the program,but thats not what im looking for though :(
Are you looking for the code or are you looking for guidance on how to write the code?
Are you looking for the code or are you looking for guidance on how to write the code?
yes sir............ ............... .....
yes sir............ ............... .....
Yes what? Did you read my question?
Yes what? Did you read my question?
I'm looking for whatever you're able to help me,the code is fine if u are able to give it to me, if you dont want to just give me the code,then guide me how to do it please
BigDaddyLH 1,216
Recognized Expert Top Contributor
I like to use the bulldozer: three rocks in a row. Works ever time!
RedSon 5,000
Recognized Expert Expert
I like to use the bulldozer: three rocks in a row. Works ever time!
That only works if the other person doesn't do paper twice in a row.
BigDaddyLH 1,216
Recognized Expert Top Contributor
That only works if the other person doesn't do paper twice in a row.
G*d d*mn that "Paperboy" move!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Carlos Kirkconnell |
last post by:
When printing, there is a definition for a Custom paper size, the custom
paper size can be setted programatically and everything is supposed to work
normally. But in windows 2000 and xp, the user must first define a paper
form with the size of the format. My application NEEDS to dinamically define
the size of paper to use. Using some unmanaged code, it is possible to
programatically define a new paper form. Is there any way of...
|
by: Ira S |
last post by:
I use a DYMO labelwriter with my Access 97 database. I just purchased a new
computer and in the report section under page setup/paper size, the new
computer keeps changing the size automatically. I know something must be
different on the machines. But what? I have checked everything !
Thanks,
Ira
|
by: TooNaive |
last post by:
Hello all,
I'm taking a C class and am having to write a program to play a game
of rock, paper scissors, and with the output of:
You chose paper and I chose rock. You Win
where paper is the players choice, and rock is the computers choice,
for reference i was given the p_r_s.h, compare.c, main.c, selection.c,
and wrt.c, and i have had to build the report.c to describe the
|
by: Vince |
last post by:
Through VB6 I asm trying to print to the bottom bin with a
paper type of LetterHead on an HP4200tn printer.
After much messing around with my bin issue, I finally
determined that if I keep the paper TYPE to PLAIN (on the
printer itself)... I can get the output to the correct
bin. However, I need the bottom bin to be exclusive
to this app. I physically set the paper TYPE to
LETTERHEAD, but I can not figure out how to set the PAPER...
|
by: Panos |
last post by:
Hi all,
I am trying to print a report in A4 paper, but my printer's default paper is
different (Letter 8.5 x 11 inches). So when i print, a significant part of
the paper remains blank, because of the different margins. Does anyone know
how to programmatically change the printer's default paper? Almost all
properties of the Printersettings Class on this matter are ReadOnly.
Thank u
Panos
| |
by: Brewtzaff |
last post by:
Hello,
I have a little problem to print my reports on custom sized paper.
I got a db containing clubmembers, a query which selects only the
needed infos to print out my membershipcards.
My card is 79mm high and 210 mm large, and each card is on a paper with
the same size, but I'm unable (don't know really how) to create a
report to print out my cards as defined.
|
by: pratik.best |
last post by:
Hi,
I am creating a software for a school. They are using dot matrix
printer and have preprinted stationary. Now the paper size is 6
inches, and they are using tractor feed. How can I stop the printer
after 6 inches, instead of regular 12 inch size of Fanfold paper.
|
by: flg22 |
last post by:
Hi
I am working on this Rock, paper, scissors java game and the program works, but I can not figure out how to get the images to load onto the program. So my question is how do I get the images to load up with the program? I am using JCreator for this project. I have created the Basic Java Application project, and then added in the 3 .java files that I need to run the program, but I just can not figure out how or where I need to upload the...
|
by: jmf777 |
last post by:
Hi here is my problem I want to have the outcome of my rock paper scissors game to print outcomes like: You chose paper and I chose rock. You win. The value for player_choice and machine_choice is declared in select.cpp (listed below).
My question is how would I go about telling, the report.cpp code below to check the select.cpp code for the variable to print?
#include "p_r_s.h"
void report(outcome result, int *win_cnt_ptr,
int...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |