P1-Hive:项目一:Hive游戏

  • O8_459960
    了解作者
  • 353.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-20 05:42
    上传日期
P1-Hive游戏 这是获奖游戏Hive的简化的计算机版本。 游戏的目的是使用以独特方式移动的生物块包围对手的女王蜂。 关于游戏 游戏是两个人一起玩的。 每个玩家有7个六边形的碎片,上面有以下生物:1只蜂王,2只甲虫,2只蚂蚁和2只蚂蚱。 棋子朝上显示在板上。 玩游戏 当玩家将一块放置在游戏空间(蜂巢)上时,游戏开始。 下一位玩家放置一块,接触第一块的边缘。 玩家轮流交替,可以放置新棋子或移动现有棋子。 第四步必须放置蜂王。 当一只女王蜂在所有6个侧面上被任何颜色的块包围时,游戏结束。 规则 当玩家将虫子放在蜂巢上时,必须将虫子放在另一块虫子上。 蜂巢绝不能破碎 这些生物以特定方式移动: 蜂王:可以向任何方向移动,一次只能移动一个空间 甲虫:每转一格 蚂蚁:可以沿着放置蜂巢的碎片的周边移动任意数量的空间 蚱hopper:可以跳过任意数量的碎片,直线地跳到任何空置的空间 线框 最有价值球
P1-Hive-master.zip
  • P1-Hive-master
  • images
  • bee.png
    2KB
  • .DS_Store
    6KB
  • Hive Game.jpg
    317.9KB
  • ghopper.jpeg
    2.3KB
  • beetle-red.png
    6.1KB
  • ant-piece.png
    6.5KB
  • ant-red.png
    6KB
  • ghopper-piece.png
    9.3KB
  • ant.png
    4.6KB
  • beetle-piece.png
    6.5KB
  • bee-red.png
    8KB
  • beetle.png
    4.2KB
  • bee-piece.png
    8.5KB
  • ghopper-red.png
    9KB
  • js
  • script.js
    1KB
  • css
  • .DS_Store
    6KB
  • style.css
    2.6KB
  • index.html
    4.7KB
  • .DS_Store
    8KB
  • README.md
    2.4KB
内容介绍
# P1-Hive Game This is a simplified, computerized version of the award winning game Hive. The object of the game is to surround your opponent's queen bee using creature pieces that move in unique ways. ## About the Game The game is played with two people. Each player has 7 hexagon-shaped pieces with the following creatures: 1 queen bee, 2 beetles, 2 ants and 2 grasshoppers. Pieces are displayed face up on the board. ### Playing the game The game begins when the a player places a piece on the gamespace (the hive). The next player places a piece touching the edge of the first piece played. Players alternate turns and can either place a new piece or move an existing piece. The queen bee must be placed by the fourth move. The game ends when a queen bee is surrounded on all 6 sides by pieces of any color. ### Rules * When a player places a bug onto the hive it must be placed touching another piece. * The hive must NEVER be broken The creatures move in specific ways: Queen bee: can move in any direction, one space at a time Beetle: moves one space per turn Ant: can move any number of spaces along the perimeter of the pieces placed the hive Grasshopper: can jump over any number of pieces to any unoccupied space in a straight line ## Wireframe ![](https://i.imgur.com/aKWCpyI.jpg) ## MVP - [ ] Instructions for playing the game - [ ] The game space is rendered as a hive - [ ] Game pieces rendered - [ ] "Zen" game state where one player can drag pieces onto hive - [ ] The game pieces can be dragged and dropped on gamespace - [ ] Add a click event to tile piece where on click, the location of the tile becomes the user's mouse location - [ ] If tile is currently being "dragged" by user and there is a click event, "drop" the piece in the matching game board section that the user is trying to drop the piece on - [ ] Change the position/xy values of the piece image to now match the gameboard position to achieve this effect - [ ] Reset button returns game pieces to their original spot ## Stretch Goals - [ ] Two players - [ ] Game logic function that checks if piece is allowed to be moved in that way or not - [ ] Illegal moves are detected and denied - [ ] Sound effect when the queen bee is surrounded - [ ] Game end state detects when a queen bee is fully surrounded and winner is declared ## Technologies * HTML/CSS/JavaScript #### References https://www.codesmite.com/article/how-to-create-pure-css-hexagonal-grids https://csshexagon.com/
评论
    相关推荐
    • Hive
      Hive
    • hive
      hive安装包hive安装包hive安装包hive安装包hive安装包
    • hive
      Apache Hive(TM)数据仓库软件有助于查询和管理驻留在分布式存储中的大型数据集。 它建立在Apache Hadoop(TM)之上,提供*工具,使数据提取/转换/加载(ETL)变得容易*一种将结构强加于各种数据格式的机制*访问...
    • hive
      Apache Hive(TM)数据仓库软件有助于查询和管理驻留在分布式存储中的大型数据集。 它建立在Apache Hadoop(TM)之上,提供*工具,使数据提取/转换/加载(ETL)变得容易*一种将结构强加于各种数据格式的机制*访问...
    • hive
      dotnet run -p ./src/Api/Hive.Api 去测试 dotnet test -c Test ./src pnpm --prefix ./src/FrontEnd test 在docker中运行 docker build -f ./ops/dockerfile -t hive . docker run -d -p 80:80 hive 通过实时观看...
    • hive
      Apache Hive(TM)数据仓库软件有助于查询和管理驻留在分布式存储中的大型数据集。 它建立在Apache Hadoop(TM)之上,提供*工具,使数据提取/转换/加载(ETL)变得容易*一种将结构强加于各种数据格式的机制*访问...
    • hive inputformat
      hive inputformat实例代码,按照空格对日志文件进行拆分
    • hive 20160130
      大数据hive
    • hive
      Apache Hive(TM)数据仓库软件有助于查询和管理驻留在分布式存储中的大型数据集。 它建立在Apache Hadoop(TM)之上,提供*工具,使数据提取/转换/加载(ETL)变得容易*一种将结构强加于各种数据格式的机制*访问...
    • hive
      hive hive hive hive hive hive hive hive hive hive hive hive