• Welcome to SpeedSolving.com — the world’s largest puzzle community!

    You’re currently browsing as a guest, which means you have limited access to discussions, resources, member profiles, and community features.

    Join 50,000+ cubers and puzzle enthusiasts from around the world to ask questions, share solves, improve faster, and be part of the community.

    Registration is free, fast, and easy — create your account today.

    Already a member? Log in here to hide this message and start participating.

The CTRL + V game

Status
Not open for further replies.
<center>
<form name=form>
<table border=1 cellpadding=2>
<tr>
<td colspan=2 align=center><b>Quadratic Equation:<br>Ax<sup>2</sup> + Bx + C = 0</b></td>
</tr>
<tr>
<td>
<center><table border=1 width=100% cellpadding=2>
<tr>
<td align=center><b>A = </b></td>
<td align=center><input type=text size=6 name="a"></td>
</tr>
<tr>
<td align=center><b>B = </b></td>
<td align=center><input type=text size=6 name="b"></td>
</tr>
<tr>
<td align=center><b>C = </b></td>
<td align=center><input type=text size=6 name="c"></td>
</tr>
</table>
</td>
<td>
<center><table border=1 width=100% cellpadding=2>
<tr>
<td colspan=2 align=center>
<input type=button value="Solve" onClick="quad(this.form)"></td>
</tr>
<tr>
<td align=center><b>X1 = </b></td>
<td align=center><input type=text size=6 name="x1"></td>
</tr>
<tr>
<td align=center><b>X2 = </b></td>
<td align=center><input type=text size=6 name="x2"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
 
puts
puts 'Give me a value for a!'
puts
a = gets.chomp
if a.to_f == 0
puts
puts 'Error, cannot divide by 0'
puts
end
puts 'Give me a value for b!'
puts
b = gets.chomp
puts
puts 'Give me a value for c!'
puts
c = gets.chomp
b1 = b.to_f - 2 * b.to_f
b2 = b.to_f**b.to_f
ac = 4 * a.to_f * c.to_f
dc = b2.to_f - ac.to_f
d = Math.sqrt dc.to_f
e1 = b1 + d
e2 = b1 - d
a2 = 2 * a.to_f
equation1 = e1.to_f / a2.to_f
equation2 = e2.to_f / a2.to_f
puts
puts equation1.to_f
puts 'and'
puts equation2.to_f
puts
puts 'Thank you! Come again!'
puts

The above was a very primitive Ruby Program for simplifying Quadratics. I'm making it better right now...
 
1.e4e5
2.Nf3Nc6
3.Bb5Nf6
4.Nc3Bc5
5.b3O-O
6.O-Od6
7.d3Be6
8.Bb2Bb4
9.a3a5
10.axb4axb4
11.Na4g6
12.Ng5Nd4
13.Nxe6fxe6
14.c3Nxb5
15.cxb4Ra6
16.Rc1c6
17.Qd2Nh5
18.Qh6Qf6
19.f3Nf4
20.Rce1Nxd3
21.Re2g5
22.Qxf6Rxf6
23.Bc1Nxb4
24.Bxg5Rg6
25.Be7Ra8
26.Rd2Re8
27.Bxd6Rg5
28.Bxb4Ra8
29.Rfd1Ra6
30.Rd8+Kg7
31.Bf8+Kg8
32.Be7+Kg7
33.Bxg5Kg6
34.Be3Nc7
35.R1d7Nb5
36.Rg8+Kf6
37.Rdg7h5
38.Bg5#
The moves for a chess game I played.
I was sending it to a friend via email.
 
Status
Not open for further replies.
Back
Top