GuessingGame

  • v9_501062
    了解作者
  • 1.4MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-15 07:43
    上传日期
###概述 在Guessing Game Project的这一部分中,您将使用测试驱动开发来构建您的Guessing Game功能所需的功能。 您将在此项目中使用面向对象的方法。 在面向对象的编程中,对象被用作我们要描述或操纵的对象的抽象。 在这个项目中,我们将使用对象来表示游戏的实例。 首先,您需要创建一个构造函数Game,该函数将创建您的游戏实例。 您将在Game.prototype上定义所有可以修改或读取游戏数据的方法。 您还需要几个在Game.prototype上未定义但将在实例方法内部使用的辅助函数。 完成后,您将具有以下功能: 游戏 Game.prototype.playersGuessSubmission Game.prototype.checkGuess 游戏原型差异 Game.prototype.isLower Game.prototype.provideH
GuessingGame-master.zip
  • GuessingGame-master
  • index.html
    1.9KB
  • GuessingGame_spec.js
    9.2KB
  • grace_hopper_academy.png
    30.5KB
  • README.md
    2KB
  • binary.png
    1.3MB
  • jquery-3.3.1.min.js
    84.9KB
  • testem.json
    139B
  • fa-logo@2x.png
    7.8KB
  • GuessingGame.js
    3.6KB
  • bootstrap.css
    142.6KB
  • style.css
    1.1KB
内容介绍
###Overview In this section of the Guessing Game Project, you will be using Test Driven development to build out the functions that you'll need for the functionality of your Guessing Game. You'll be using an Object-Oriented Approach in this project. In object oriented programming, objects are used as an abstraction of something we want to describe or manipulate. In this project, we will use objects to represent an instance of a game. First, you'll need to create a constructor function, Game, that will create your game instances. You'll define all the methods that can modify or read data from game on Game.prototype. You'll also need a couple of helper functions that are not defined on Game.prototype, but will be used inside the instance methods. When you're finished you'll have the following functions: - Game - Game.prototype.playersGuessSubmission - Game.prototype.checkGuess - Game.prototype.difference - Game.prototype.isLower - Game.prototype.provideHint - generateWinningNumber - newGame - shuffle ###Steps This assignment is in the style of Test First. To start, fork and clone this repository to your local machine. 1. Fork this repository 2. `git clone https://github.com/YOURUSERNAME/guessingGame-Part2` 3. `touch GuessingGame.js` 3. `testem` 3. Write the necessary functions to pass all the Jasmine test specs 4. `git add .` Add your changes to the staging area. 5. `git commit -m 'finished guessing game part 2'` Make a commit of your work. 5. `git push master origin` Push your work up to your remote Fork. This project may have specs you haven't seen before. Take a look at [these introductory Jasmine](http://jasmine.github.io/2.0/introduction.html) docs to familiarize yourself with more of the Jasmine specs. Also, remember that you can disable describe blocks and it blocks by putting an 'x' before the test. For example: ``` xdescribe('this won\'t run', function() {...}); ``` In Foundations Part 4, you'll get Guessing Game Part 3. Part 3 will link these functions to your existing HTML and CSS files using jQuery!
评论
    相关推荐
    • 嵌入式Linux设备驱动开发详解
      本书详细讲解了嵌入式linux的各种设备驱动,包括字符设备驱动、数字显示驱动、键盘驱动、a/d驱动、d/a驱动、lcd驱动、触摸屏驱动、can总线驱动、iic总线驱动、音频总线驱动ide接口驱动、闪存芯片驱动、usb驱动、...
    • Windows CE驱动开发综述
      MSDN webcast Windows CE驱动开发综述 PPT+Video
    • 驱动开发new
      驱动开发new
    • 驱动开发 HideProcessHookMDL
      驱动隐藏进程 VC的代码!值得参考! 驱动隐藏进程 VC的代码!值得参考! 驱动隐藏进程 VC的代码!值得参考!
    • Linux 设备驱动开发详解 代码
      Linux 设备驱动开发详解 linuxdriver_code_tool |-- 03 | `-- 2.6内核升级工具 | |-- device-mapper-1.00.19-2.i386.rpm | |-- lvm2-2.00.25-1.01.i386.rpm | |-- mkinitrd-4.2.0.3.tar.tar | |-- module-init-tools...
    • Linux设备驱动开发详解
      这是一本介绍Linux设备驱动开发理论、框架与实例的书,《Linux设备驱动开发详解(第2版)》基于LDD6410开发板,以Linux2.6 版本内核为蓝本,详细介绍自旋锁、信号量、完成量、中断顶/底半部、定时器、内存和I/O映射...
    • 驱动开发教程(第一章)
      个人翻译的一篇驱动开发入门的英文资料,可供刚入门的或要入门的驱动开发者看下
    • VC6 驱动开发向导
      VC 6.0开发驱动所用的向导源代码。可以使我们方便的利用VC6.0开发驱动程序。
    • Android驱动开发热门资料.zip
      《Android核心技术与实例详解》PPT Android HAL实例解析 Android Linux kernel 编译环境.doc Android 底层开发.pdf Android+Porting+Guide+v1....Android硬件驱动开发关键技术和HAL移植要领.pdf HAL_sensor模型分析.doc
    • EasySYS 设置驱动开发环境软件
      EasySYS 设置驱动开发环境软件 EasySYS 设置驱动开发环境软件