projects
/
trapthecap.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[trapthecap.git]
/
main.rb
1
#!/usr/bin/ruby -w
2
3
require
'src/play'
4
require
'src/selection'
5
6
pop1
=
Population
.
new
(
100
,
20
)
7
8
start
=
Time
.
now
9
puts
"Started at #{start}"
10
pop1
.
tournament_select_population
(
0.8
,
1000
,
true
)
11
finish
=
Time
.
now
12
puts
"Took #{finish - start}"
13