Asterobots - No pain, No vein -

National Institution for the Promotion of Youth Education
                The 17th November, 2012

Kazunori Sakamoto            Waseda University
Daniel Perez                 Waseda University
Hiroaki Hosono               Tokyo Institute of Technology
Seiji Sato                   Waseda University
Rule of qualification round
• Prepare 4 teams + 2 our samples
• Each team plays 10 games randomly
• Calculate scores with 1st:21, 2 nd: 15,
  3 rd:10, 4 th:6, 5 th:3, 6 th:1 points
• The highest 2 teams advance to the final!




  2012/12/26                             2
Rule of qualification round
• Prepare 4 teams + 2 our samples
• Each team plays 10 games randomly
• Calculate scores with 1st:21, 2 nd: 15,
  3 rd:10, 4 th:6, 5 th:3, 6 th:1 points
• The highest 2 teams advance to the final!




  2012/12/26                             3
Team introduction
•   hasi (KLab):       Takuya Hashimoto
•   mecha_g3 (KLab):   Shingo Inada
•   methane1 (KLab):   Naoya Inada
•   Oyososan (Google): Hisayori Noda
                       Ryo Hashimoto
                       Taiju Tsuiki
                       Hitoshi Yoshida
                       Takashi Tayama
• Wand Player (Our sample)
• JoeJack (Our sample)
2012/12/26                            4
Let’s watch the games
•   http://www.youtube.com/watch?v=5r2kWlSrgfw
•   http://www.youtube.com/watch?v=PoPw748TDsk
•   http://www.youtube.com/watch?v=hS1i5J6tNsE
•   http://www.youtube.com/watch?v=glZUgOrbXKk
•   http://www.youtube.com/watch?v=FZhpfYgyL9s
•   http://www.youtube.com/watch?v=YKY4PkojxoM
•   http://www.youtube.com/watch?v=QQXgagYmfe0
•   http://www.youtube.com/watch?v=M_JYW7taboM
•   http://www.youtube.com/watch?v=2eccv4iFUOM
•   http://www.youtube.com/watch?v=hjiH5EPhshw

2012/12/26                                   5
Ranks of qualification round
Name                Ranks        Score
methane1      2 2 2 1 2 3 4 5 2 3 125
mecha_g3      5 3 4 3 3 5 6 2 3 4 74
Wand Player   1 5 5 4 4 4 5 3 6 5 62
JoeJack       4 4 6 6 6 6 3 6 5 6 31
Oyososan      6 6 3 2 5 1 1 4 1 2 114
hasi          3 1 1 5 1 2 2 1 4 1 154
2012/12/26                          6
Rule of final round
• Prepare 4 students’ and 2 guests’ teams
   – not_shiokawa, wakaba,
     oshieteZukky, <<o<>_<*>o>>
• We conducted 3 games
• Calculate scores with 1st:21, 2 nd: 15,
  3 rd:10, 4 th:6, 5 th:3, 6 th:1 points
• The highest team wins!


 2012/12/26                                 7
Let’s watch the games
• http://www.youtube.com/watch?v=qoW2cjwnRzM
• http://www.youtube.com/watch?v=rnIHc55_D6Y
• http://www.youtube.com/watch?v=7BQomwyB2Lo




2012/12/26                                 8
Matches of 1st round

methane1       wakaba         wakaba
not_shiokawa   mathane1       <<o<>_<*>o>>

wakaba         oshieteZukky   oshieteZukky
ohieteZukky    hasi           not_shiokawa
<<o<>_<*>o>>   <<o<>_<*>o>>   metahne1

hasi           not_shiokawa   hasi
Ranking after 1st round

       Rank AI name         1st     Score
       1     <<o<>_<*>o>>   1 (21) 21
       2     hasi           2 (15) 15
       3     wakaba         3 (10) 10
       4     methane1       4 (6)   6
       5     not_shiokawa   5 (3)   3
       6     oshieteZukky   6 (1)   1



2012/12/26                                  10
Matches of 2 nd round

methane1       wakaba         wakaba
not_shiokawa   mathane1       <<o<>_<*>o>>

wakaba         oshieteZukky   oshieteZukky
ohieteZukky    hasi           not_shiokawa
<<o<>_<*>o>>   <<o<>_<*>o>>   metahne1

hasi           not_shiokawa   hasi
Ranking after 2nd round

 Rank AI name               1st        2nd        Score
         1   hasi           2   (15)   1   (21)   36
         2   wakaba         3   (10)   2   (15)   25
         3   <<o<>_<*>o>>   1   (21)   5   (3)    24
         4   methane1       4   (6)    4   (6)    12
         5   oshieteZukky   6   (1)    3   (10)   11
         6   not_shiokawa   5   (3)    6   (1)    4




2012/12/26                                             12
Matches of 3 rd round

methane1       wakaba         wakaba
not_shiokawa   mathane1       <<o<>_<*>o>>

wakaba         oshieteZukky   oshieteZukky
ohieteZukky    hasi           not_shiokawa
<<o<>_<*>o>>   <<o<>_<*>o>>   metahne1

hasi           not_shiokawa   hasi
Ranking after 3 rd round

Rank AI name           1st    2nd    3 rd   Score
  1  hasi              2 (15) 1 (21) 3 (10) 46
 2      <<o<>_<*>o>>   1 (21) 5 (3)   1 (21) 45
 3      methane1       4 (6)  4 (6)   2 (15) 27
 4      wakaba         3 (10) 2 (15) 6 (1)   26
 5      oshieteZukky   6 (1)  3 (10) 4 (6)   17
 6      not_shiokawa   5 (3)  6 (1)  5 (3)   7




  2012/12/26                                  14
LOC(Lines of code) and score
         1600

         1400

         1200

         1000
Score




          800

          600
                                                A large program is
          400
                                              stronger than a small
          200                                      program ... ?
             0
                 0   50   100   150     200    250    300   350   400        450

                                      Lines of code

        2012/12/26                                                      15
Complexity and score
        1600

        1400

        1200

        1000
Score




        800

        600

        400
                   Is a simple code more powerful than a
        200
                   complex code ? too low correlativity ...
          0
               0    10    20      30    40     50      60   70        80

                               Cyclomatic complexity

    2012/12/26                                                   16
So what ...?
Metrics should be measured
 for a specific purpose 
2012/12/26              17
Thank you!
     See you again
  @JavaChallenge2013
2012/12/26           18

JavaChallenge 2012 Special League

  • 1.
    Asterobots - Nopain, No vein - National Institution for the Promotion of Youth Education The 17th November, 2012 Kazunori Sakamoto Waseda University Daniel Perez Waseda University Hiroaki Hosono Tokyo Institute of Technology Seiji Sato Waseda University
  • 2.
    Rule of qualificationround • Prepare 4 teams + 2 our samples • Each team plays 10 games randomly • Calculate scores with 1st:21, 2 nd: 15, 3 rd:10, 4 th:6, 5 th:3, 6 th:1 points • The highest 2 teams advance to the final! 2012/12/26 2
  • 3.
    Rule of qualificationround • Prepare 4 teams + 2 our samples • Each team plays 10 games randomly • Calculate scores with 1st:21, 2 nd: 15, 3 rd:10, 4 th:6, 5 th:3, 6 th:1 points • The highest 2 teams advance to the final! 2012/12/26 3
  • 4.
    Team introduction • hasi (KLab): Takuya Hashimoto • mecha_g3 (KLab): Shingo Inada • methane1 (KLab): Naoya Inada • Oyososan (Google): Hisayori Noda Ryo Hashimoto Taiju Tsuiki Hitoshi Yoshida Takashi Tayama • Wand Player (Our sample) • JoeJack (Our sample) 2012/12/26 4
  • 5.
    Let’s watch thegames • http://www.youtube.com/watch?v=5r2kWlSrgfw • http://www.youtube.com/watch?v=PoPw748TDsk • http://www.youtube.com/watch?v=hS1i5J6tNsE • http://www.youtube.com/watch?v=glZUgOrbXKk • http://www.youtube.com/watch?v=FZhpfYgyL9s • http://www.youtube.com/watch?v=YKY4PkojxoM • http://www.youtube.com/watch?v=QQXgagYmfe0 • http://www.youtube.com/watch?v=M_JYW7taboM • http://www.youtube.com/watch?v=2eccv4iFUOM • http://www.youtube.com/watch?v=hjiH5EPhshw 2012/12/26 5
  • 6.
    Ranks of qualificationround Name Ranks Score methane1 2 2 2 1 2 3 4 5 2 3 125 mecha_g3 5 3 4 3 3 5 6 2 3 4 74 Wand Player 1 5 5 4 4 4 5 3 6 5 62 JoeJack 4 4 6 6 6 6 3 6 5 6 31 Oyososan 6 6 3 2 5 1 1 4 1 2 114 hasi 3 1 1 5 1 2 2 1 4 1 154 2012/12/26 6
  • 7.
    Rule of finalround • Prepare 4 students’ and 2 guests’ teams – not_shiokawa, wakaba, oshieteZukky, <<o<>_<*>o>> • We conducted 3 games • Calculate scores with 1st:21, 2 nd: 15, 3 rd:10, 4 th:6, 5 th:3, 6 th:1 points • The highest team wins! 2012/12/26 7
  • 8.
    Let’s watch thegames • http://www.youtube.com/watch?v=qoW2cjwnRzM • http://www.youtube.com/watch?v=rnIHc55_D6Y • http://www.youtube.com/watch?v=7BQomwyB2Lo 2012/12/26 8
  • 9.
    Matches of 1stround methane1 wakaba wakaba not_shiokawa mathane1 <<o<>_<*>o>> wakaba oshieteZukky oshieteZukky ohieteZukky hasi not_shiokawa <<o<>_<*>o>> <<o<>_<*>o>> metahne1 hasi not_shiokawa hasi
  • 10.
    Ranking after 1stround Rank AI name 1st Score 1 <<o<>_<*>o>> 1 (21) 21 2 hasi 2 (15) 15 3 wakaba 3 (10) 10 4 methane1 4 (6) 6 5 not_shiokawa 5 (3) 3 6 oshieteZukky 6 (1) 1 2012/12/26 10
  • 11.
    Matches of 2nd round methane1 wakaba wakaba not_shiokawa mathane1 <<o<>_<*>o>> wakaba oshieteZukky oshieteZukky ohieteZukky hasi not_shiokawa <<o<>_<*>o>> <<o<>_<*>o>> metahne1 hasi not_shiokawa hasi
  • 12.
    Ranking after 2ndround Rank AI name 1st 2nd Score 1 hasi 2 (15) 1 (21) 36 2 wakaba 3 (10) 2 (15) 25 3 <<o<>_<*>o>> 1 (21) 5 (3) 24 4 methane1 4 (6) 4 (6) 12 5 oshieteZukky 6 (1) 3 (10) 11 6 not_shiokawa 5 (3) 6 (1) 4 2012/12/26 12
  • 13.
    Matches of 3rd round methane1 wakaba wakaba not_shiokawa mathane1 <<o<>_<*>o>> wakaba oshieteZukky oshieteZukky ohieteZukky hasi not_shiokawa <<o<>_<*>o>> <<o<>_<*>o>> metahne1 hasi not_shiokawa hasi
  • 14.
    Ranking after 3rd round Rank AI name 1st 2nd 3 rd Score 1 hasi 2 (15) 1 (21) 3 (10) 46 2 <<o<>_<*>o>> 1 (21) 5 (3) 1 (21) 45 3 methane1 4 (6) 4 (6) 2 (15) 27 4 wakaba 3 (10) 2 (15) 6 (1) 26 5 oshieteZukky 6 (1) 3 (10) 4 (6) 17 6 not_shiokawa 5 (3) 6 (1) 5 (3) 7 2012/12/26 14
  • 15.
    LOC(Lines of code)and score 1600 1400 1200 1000 Score 800 600 A large program is 400 stronger than a small 200 program ... ? 0 0 50 100 150 200 250 300 350 400 450 Lines of code 2012/12/26 15
  • 16.
    Complexity and score 1600 1400 1200 1000 Score 800 600 400 Is a simple code more powerful than a 200 complex code ? too low correlativity ... 0 0 10 20 30 40 50 60 70 80 Cyclomatic complexity 2012/12/26 16
  • 17.
    So what ...? Metricsshould be measured for a specific purpose  2012/12/26 17
  • 18.
    Thank you! See you again @JavaChallenge2013 2012/12/26 18