Top Geary - 27th May 2016 at 12:10 AMI've learnt to ignore when you say derogatory things to me
How about this guys.Start me off with an idea to do. Something extremely basic. I'll get started from there.
public String getResult(Card card1,Card card2){String name1=card1.getName();String name2=card2.getName();String result="Wins";if(name1.equals("Scissors")&&name2.equals("Paper"))return result;if(name1.equals("Paper")&&name2.equals("Rock"))return result;if(name1.equals("Rock")&&name2.equals("Rock"))return result;if(name1.equals(name2))return "Draws";return "Loses";}
getLocationOnScreen(), is the correct approach..? Needs to be run after the layout has been performed.Yuck: http://stackoverflow.com/questions/19497402/get-position-of-imageview-relative-to-screen-programmatically
Make something that takes two whole numbers, A and B. Return the result that is equivalent to A^B.
namespace WindowsFormsApplication3{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } public Double Variable, Variable2, Result; //Haha fuck you I used a public variable! private void textBox2_TextChanged(object sender, EventArgs e) { Double.TryParse(textBox2.Text, out Variable2); // This is the part where you call me an idiot for not using an int Result = Math.Pow(Variable, Variable2); label1.Text = Result.ToString(); } private void textBox1_TextChanged(object sender, EventArgs e) { Double.TryParse(textBox1.Text,out Variable); Result = Math.Pow(Variable, Variable2); label1.Text = Result.ToString(); // Repeating the two lines probably wasn't needed but I wanted it to auto update. } }}