21点游戏,命令行的,面像过程的写法。ruby 的写法以后再试试。
# this is game 21 point
# 操作命令符 空没有操作,n下一步,抽牌;w亮牌结束;l认输
$ope = ''
$prompt = '>'
$x1 = 0
$x2 = 0
$x3 = 0
$pc = 0
$u1 = 0
$u2 = 0
$u3 = 0
$over = ''
def out_main(a = ...
分类:
其他好文 时间:
2014-07-29 12:52:27
阅读次数:
212
说明:以下内容来自CentOS官方wiki貌似:还没有CentOS 7 的rpmforge源Installing RPMforgeRPMforge is a collaboration of Dag and other packagers. They provide over 5000 packag...
分类:
其他好文 时间:
2014-07-28 15:33:53
阅读次数:
310
Description
Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to r...
分类:
其他好文 时间:
2014-07-27 11:17:12
阅读次数:
255
A system includes a server and a controller embedded in a device. Both the server and the embedded controller are capable of communicating over a comp...
分类:
其他好文 时间:
2014-07-25 02:25:54
阅读次数:
321
http://blog.csdn.net/mazidao2008/article/details/4934257————————————————————————————————————————————————————STUN简介STUN(Simple Traversal of UDP over NA...
分类:
其他好文 时间:
2014-07-24 21:33:22
阅读次数:
314
1.首先,我们来介绍第一种方式:◆查询的SQL语句如下:select row_number() over (order by name) as rowid, sysobjects.[name] from sysobjects◆运行的结果:rowid name1 all_columns2 all_ob...
分类:
数据库 时间:
2014-07-24 17:28:45
阅读次数:
342
Introduction In this post, we will introduce OTW(over the web) mode to install Teamcenter 4-tier rich client and also use WAM tool to generate it. To ...
分类:
系统相关 时间:
2014-07-23 15:11:06
阅读次数:
978
1、div的高度已知---line-hight 固定高宽,图片垂直局中 只要给容器设置 line-height 和 height,并使两值相等,再加上 over-flow: hidden1.同时支持块级和内联极元素2.支持所有浏览器3.IE中不支持img等...
分类:
Web程序 时间:
2014-07-23 11:58:47
阅读次数:
418
//得到随机数function fRandomBy(under, over){ switch(arguments.length){ case 1: return parseInt(Math.random()*under+1); case 2: return parseInt(Math.random(...
分类:
Web程序 时间:
2014-07-22 22:46:12
阅读次数:
211
为什么要清除浮动?当元素使用了float样式而没有清除浮动的时候,有浮动元素的父元素容器将无法自动撑开。也就是说当一个元素是浮动的,如果没有关闭浮动,其父元素不会包含这个浮动元素,因为浮动元素从文档流中脱离,从而会影响到前后标签、父级标签的位置及widthheight属性。通过设置父元素属性over...
分类:
其他好文 时间:
2014-07-22 00:35:35
阅读次数:
223