Design a deck of cards that can be used for different card game applications. Then write me an algorithm that will shuffle this deck of cards, and write junit tests (as many test cases as you can come up) to make sure it will work properly. Please make sure the program can be compiled and run. This is an algorithm question, so pls do not use any existing API. You need implement it yourself. And then send me the translation and the entire code and ant build file in zip or rar 

解决方案 »

  1.   

    Design a deck of cards that can be used for different card game applications.Then write me an algorithm that will shuffle this deck of cards, and write junit tests (as many test cases as you can come up) to make sure it will work properly. Please make sure the program can be compiled and run. This is an algorithm question, so pls do not use any existing API. You need implement it yourself. And then send me the translation and the entire code and ant build file in zip or rar 刚忘记短句了,我就是不理解题目倒底要我干什么,四好男人,又不怎么打牌,这不是难为我么,各位帮帮忙,谢谢了
      

  2.   

    让你设计一个牌堆(普通扑克牌),然后写一个洗牌的算法。不要用现成的api,(比如Vector之类),自己实现数据结构,还要写尽可能多的测试用例,把翻译和全部工程(含ant),一起打包给他 。
      

  3.   

    让你提供一个纸牌程序
    实现这么一个功能:可以玩不同的纸牌游戏
    另外要提供一个洗牌的算法,尽可能多的写测试程序以保证它的正确性
    保证你所提供的程序能够正确编译和运行
    不要用现存的API,并且希望悄能够独立完成
    最后让你把完整的代码以及用ANT编译后打成zip或者RAR文件发送给他应该是这个意思吧
      

  4.   

    哦,谢谢,他说要can be used for different card game applications,应该是要能通用吧,另外洗牌程序,通常
    洗牌的话是不是要尽量打散,还是完全随机即可?