diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..79e9bfa --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +AddType "text/plain; charset=EUC-JP" .html diff --git a/index.html b/index.html new file mode 100644 index 0000000..af13cfa --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + +My Project! + + + +

�ޥ��ץ�������

+

chmod +x ������ ./myproj.rb �ǵ�ư���Ƥ͡�

+ + + diff --git a/myproj.rb b/myproj.rb new file mode 100644 index 0000000..9d31e23 --- /dev/null +++ b/myproj.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby +srand +judge = 0 +hand = %w,���� ���祭 �ѡ�, +while judge == 0 + print "������1�����祭��2���ѡ���3���ɤ�? :" + human = gets.to_i-1 + com = rand(3) + printf("�ݤ�� ���� %s : %s �路\n", hand[human], hand[com]) + judge = (3+human-com) % 3 + if judge == 2 + puts "���ߤξ����������" + elsif judge == 1 + puts "���ߤ��餱��������" + else + puts "�������Ǥ����" + end +end