abap写的小游戏 数字移动小游戏

这篇博客展示了作者在项目后期维护阶段出于娱乐心态,使用ABAP编写的一个数字移动小游戏。游戏界面包含9个按钮,玩家通过点击将数字移动到空白位置,目标是排列成特定顺序。代码中定义了各种按钮的用户命令,并实现了点击按钮时数字的移动逻辑以及检查正确结果的功能。
摘要由CSDN通过智能技术生成

项目后期维护,没什么事情干,闲着无聊,今天写了个小游戏玩玩:

(注:由于代码不能从客户那边带回来,回家用记事本写的,注释也比较少,但是代码实现的逻辑很简单,不解释。。。。。 如有编译错误请谅解,    灰常感谢!!!!)

 

report ......

selection-screen pushbutton 2(10)  pb11 user-command pb11.
selection-screen pushbutton 12(10) pb12 user-command pb12.
selection-screen pushbutton 22(10) pb13 user-command pb13.

selection-screen skip.
selection-screen pushbutton 2(10)  pb21 user-command pb21.
selection-screen pushbutton 12(10) pb22 user-command pb22.
selection-screen pushbutton 22(10) pb23 user-command pb23.

selection-screen skip.
selection-screen pushbutton 2(10)  pb31 user-command pb31.
selection-screen pushbutton 12(10) pb32 user-command pb32.
selection-screen pushbutton 22(10) pb33 user-command pb33.


selection-screen skip.
selection-screen pushbutton 12(10)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值