Coder Social home page Coder Social logo

2020-snake-1's Introduction

2020-snake

The snake game

追加方法

  1. https://github.com/p2titech/2020-snake を開く
  2. ページ右上にある Fork と書かれたボタンを押す
  3. (もし聞かれたら)自分のアカウントを選ぶ
  4. https://github.com/自分のアカウント/2020-snake が開かれるはず
  5. いつものように Eclipse で clone する
  6. 定義を追加する
  7. いつものように Eclipse で commit & push する
  8. https://github.com/自分のアカウント/2020-snake を開く
  9. "This branch is X commit ahead of p2titech:main. "のようなメッセージの右に Pull request と書いてあるのでそれをクリックする
  10. 出てきた指示に従って完了する

Tasks

蛇ゲームのために必要となる以下のメソッドを作れ

  1. 蛇を現在の進行方向に1升進める
  2. 与えられた位置の升目に蛇の体節があるかを判定する (蛇の頭が自分自身の体節に衝突するとゲーム終了)
  3. 蛇を画面上に描画する

2. 与えられた位置の升目に蛇の体節があるかを判定する (蛇の頭が自分自身の体節に衝突するとゲーム終了)

計算の例

 012345
0......
1...**^
2......
3......
X Y 体節
0 0
3 1

※頭のない任意の位置に対して判定するものとする

2020-snake-1's People

Contributors

masuhar avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.