The invention provides a method and device for the operation of a 24 point game based on a touch screen. The method includes: displaying a device including 4 integers on a touch screen; checking whether the finger has completely crossed 4 integers during a stroke on the device; the 4 integers crossed by the finger are fixed in sequence according to the integer four. The rules of the hybrid operation, using the combination of addition, subtraction, multiplication, multiplication, division and parentheses to calculate the 4 ordered integers, if the result of a combination is equal to 24, the operation is successful, and if all the combined results are not equal to 24, the operation fails. The method and device provided by the invention can remove the players' direct operation of adding, reducing, multiplying, removing and parentheses. The user only needs to use the finger to carry out a stroke operation, and greatly improves the convenience of the operation.
【技术实现步骤摘要】
一种基于触控屏操作24点游戏的方法和装置
本专利技术涉及智能手机
,特别是涉及一种基于触控屏操作24点游戏的方法和装置。
技术介绍
24点游戏是深爱人们喜欢的休闲、益智小游戏。传统玩法是从扑克牌中随机取出4张,将这4张扑克牌对应的数值(1到13)进行整数四则运算,使计算结果等于24。随着电脑,智能手机的普及,出现了可以在电脑和智能手机上运行的24点游戏。在传统技术中,参照图1,玩家除了需要操作4个整数外,还需要操作加、减、乘、除,有的技术方案还需要操作表示计算优先级的括号,这导致操作效率极低,影响用户体验和可玩性。
技术实现思路
本专利技术提供一种基于触控屏操作24点游戏的方法和装置,可以提高操作效率。一种基于触控屏操作24点游戏的方法和装置,该方法包括:在触控屏上显示一个包括4个整数的装置;检查手指在装置上进行一次划动的过程中是否完全划过4个整数;手指划过的4个整数按先后顺序固定,按整数四则混合运算的规则,使用加、减、乘、除及括号的各种组合对这4个有序整数进行计算,如果有一个组合的计算结果等于24则操作成功,如果所有组合的计算结果都不等于24则操作失败。上述基于触控屏操作24点游戏的方法和装置,在装置上有4个数字显示区,每个数字显示区显示一个整数,4个数字显示区互不重叠,4个数字显示区中的任何3个都不在一条直线上。附图说明图1是传统的24点游戏示意图;图2为一个实施例在终端上的数字显示装置示意图;图3为摘要图。具体实施方式下面将结合附图并通过具体的实施方式进一步说明本专利技术的技术方案。参阅图2所示,在一个实施例中,提供了一个数字显示装置201,在数字 ...
【技术保护点】
1.一种基于触控屏操作24点游戏的方法和装置,该方法包括:在触控屏上显示一个包括4个整数的装置;检查手指在装置上进行一次划动的过程中是否完全划过4个整数;手指划过的4个整数按先后顺序固定,按整数四则混合运算的规则,使用加、减、乘、除及括号的各种组合对这4个有序整数进行计算,如果有一个组合的计算结果等于24则操作成功,如果所有组合的计算结果都不等于24则操作失败。
【技术特征摘要】
1.一种基于触控屏操作24点游戏的方法和装置,该方法包括:在触控屏上显示一个包括4个整数的装置;检查手指在装置上进行一次划动的过程中是否完全划过4个整数;手指划过的4个整数按先后顺序固定,按整数四则混合运算的规则,使用加、减、乘、除及括号的各种组合对这4个有序整数...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。