Giter Site home page Giter Site logo

softeng-homework-project's Introduction

Homework Project: Rókafogó (2.6.)

Játékleírás:

A játék egy sakktáblán játszható 4 sötét és 1 világos gyaloggal, melyek a kezdőállásban az ábrán látható módon helyezkednek el. A sötét gyalogok a kutyák, a világos gyalog a róka. Az egyik játékos a kutyákat, a másik a rókát irányítja. A játékosok felváltva következnek lépni:

  • A kutyák átlósan léphetnek egy mezőt, de csak előre.
  • A róka szintén átlósan egy mezőt léphet, de mozoghat hátrafelé is.

A rókát irányító játékos akkor nyer, ha a figurát a kutyák mögé vezeti. A kutyákat vezető játékos akkor nyer, ha a rókát olyan helyzetbe kényszeríti, amelyben nem tud léepni.

Alapfelállás:

Alap felállás

Egy PLAYER_ONE győztes játszma:

  1. PLAYER_1: from: 0 2 to: 1 1
  2. PLAYER_2: from: 7 1 to: 6 2
  3. PLAYER_1: from: 1 1 to: 2 0
  4. PLAYER_2: from: 6 2 to: 5 3
  5. PLAYER_1: from: 2 0 to: 3 1
  6. PLAYER_2: from: 5 3 to: 4 2
  7. PLAYER_1: from: 3 1 to: 4 0
  8. PLAYER_2: from: 7 3 to: 6 2
  9. PLAYER_1: from: 4 0 to: 5 1
  10. PLAYER_2: from: 7 5 to: 6 4
  11. PLAYER_1: from: 5 1 to: 6 0
  12. PLAYER_2: from: 6 2 to: 5 3
  13. PLAYER_1: from: 6 0 to: 7 1

PLAYER_1 wins!

Egy PLAYER_TWO győztes játszma:

  1. PLAYER_1: from: 0 2 to: 1 1
  2. PLAYER_2: from: 7 1 to: 6 0
  3. PLAYER_1: from: 1 1 to: 0 0
  4. PLAYER_2: from: 6 0 to: 5 1
  5. PLAYER_1: from: 0 0 to: 1 1
  6. PLAYER_2: from: 5 1 to: 4 0
  7. PLAYER_1: from: 1 1 to: 0 0
  8. PLAYER_2: from: 4 0 to: 3 1
  9. PLAYER_1: from: 0 0 to: 1 1
  10. PLAYER_2: from: 3 1 to: 2 0
  11. PLAYER_1: from: 1 1 to: 0 0
  12. PLAYER_2: from: 2 0 to: 1 1

PLAYER_2 wins!

softeng-homework-project's People

Contributors

kozakbalint avatar jeszy75 avatar github-classroom[bot] avatar

Watchers

 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.