This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dice | |
def initialize | |
@list = [] | |
end | |
def shake | |
@list << rand(6) + 1 | |
p @list.last | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Magic | |
def initialize(attack_point,defense_point) | |
@attack_point = attack_point | |
@defense_point = defense_point | |
@level = 1 | |
end | |
def level_up | |
@level += 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Magic | |
@@a = 0 | |
def initialize(attack_point,defence_point) | |
@attack_point = attack_point | |
@defence_point = defence_point | |
end | |
def level_up | |
@@a += 1 | |
@attack_point * (1 + @@a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Magic | |
@@magical_girls = 0 | |
def initialize(attack_point,defence_point) | |
@attack_point = attack_point | |
@defence_point = defence_point | |
@@magical_girls += 1 | |
end | |
def attack | |
@attack_point |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
学校の先生に見てもらうつもりだったんですが台風のお陰で休校になりまして・・・ | |
お時間がございましたらTwitterなので感想やアドバイスなどいただけると嬉しいです。 | |
見ていただき部分は「将来の目標」と「自己紹介文」の部分です。(他はおk頂きました) | |
※記入欄が横17cmの2行しかないため短文になっております。 | |
*将来の目標の部分なのですが、今現在の目標はプログラマになることです。 | |
しかしこの書き方だと職についたら終わりのようなイメージを持たれそうで怖いです。 | |
プログラマになるためにこんなことをやっています。 | |
(勉強会へ参加したり、プログラミングの学習をしたり、企業の方にプログラミングのノウハウを教え頂いたり) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ddddd |