Chance-It: an object-oriented capstone project for CS-1

Chance-It: an object-oriented capstone project for CS-1
复制标题

Chance-It:CS-1 的面向对象顶点项目

DOI:
--
复制
发表时间:
1998
期刊:
Technical Symposium on Computer Science Education
影响因子:
--
通讯作者:
Joel C. Adams
Joel C. Adams
中科院分区:
--
文献类型:
--
作者:
Joel C. Adams

文献摘要

被引文献

相似文献

大多数人喜欢玩游戏。大多数CS-1的学生都会喜欢涉及计算游戏的期末项目。机会——这是一个简单的双人骰子游戏,有许多不同复杂程度的可能策略。这些功能使得《Chance-It》游戏策略的形式化和编码问题成为CS-1有趣的最终项目。本文描述了CS-1的一个面向对象的期末项目,学生在其中构建Player1和Player2类来玩Chance-It。提供了一个ChanceItGame类和驱动程序来协调这些类的交互。该项目为学生提供了一个愉快的面向对象设计的介绍,以及在软件中形式化和编纂人类策略的问题。示例用c++给出,但很容易转换为Java。
Most people enjoy playing games. Most CS-1 students will enjoy a final project that involves computational game-playing. Chance-It is a simple two-person dice game with many possible strategies at varying levels of sophistication and complexity. These features make the problem of formalizing and encoding a strategy to play Chance-It an interesting final project for CS-1.This paper describes an object-oriented final project for CS-1 in which students build Player1 and Player2 classes to play Chance-It. A ChanceItGame class and driver are provided to coordinate the interactions of these classes. The project provides students with an enjoyable introduction to object-oriented design and the problem of formalizing and codifying human strategy in software. Examples are given in C++, but convert easily to Java.