由Java纸牌游戏 [英] Solitaire game by java

查看:99
本文介绍了由Java纸牌游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过java.how为纸牌游戏添加拖放属性。我可以通过拖放,从画面堆或从丢弃堆到画面堆或移动堆来移动单张卡。如果卡适用于掉落的桩,则应将其添加到该堆中,否则卡应返回原始堆。卡片可以从套件堆中移回到桌面堆中。如果用户点击空的甲板堆,丢弃堆应该移回到甲板堆中。因此用户可以反复穿过甲板堆。我可以使用哪种方法,或者我可以添加哪种方法,我不知道。我需要一些帮助。

How can I add drag and drop properties for solitaire game by java.how can I move a single card by drag and drop, from a tableau pile or from discard pile to tableau pile or to suit pile. If the card is suitable for the dropped pile, it should be added to that pile, otherwise card should be returned back to original pile. Card can be moved from the suite pile back into tableau pile.If user clicks on an empty deck pile, the discard pile should be moved back to the deck pile.Thus the user can traverse the deck pile repeatedly. Which method I can use, or which method I can add I don't know. I need some help about that.

推荐答案

这篇关于由Java纸牌游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆