简体   繁体   English

如何创建一个每个人都知道邻居的“网格”布局?

[英]How can I create a “grid” layout where everyone knows their neighbour?

Hey there guys, I was wondering what the easiest way to create a grid-layout in Javascript/jQuery that will allow each "node" to talk to their nearest neighbours (up, down, left and right). 嘿那些家伙,我想知道在Javascript / jQuery中创建网格布局的最简单方法是什么,这将允许每个“节点”与他们最近的邻居(上,下,左和右)交谈。

Does anyone have an idea?! 有没有人有想法?! :) :)

这听起来像生命游戏逻辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试创建一个 function ,我可以在其中获取名字以“A”开头的每个人的名字 - I am trying to get create a function where I can grab the names of everyone whose name starts with an 'A' 如何在 React Native 中的图像右侧创建一个 2x2 按钮部分的布局? - How can I create a layout where there is a 2x2 button section to the right of an image in React Native? 如何使我的服务器可供所有人使用? - How can I make my server accessible for everyone? 在HTML或Javascript中,如何为所有人存储变量? - In HTML or Javascript, how can I store a variable for everyone? 当所有人都断开连接时,如何删除临时语音通道? - How can I delete a temporary voice channel when everyone disconnects? 我如何定义@everyone? (discord.js) - How can I define @everyone? (discord.js) 如何让JS脚本为每个查看它的人更新页面? - How can I have a JS script update a page for everyone viewing it? 如何拒绝@everyone 并允许作者查看频道? - How can I deny @everyone and allow the author to view the channel? 任何人都知道我如何在 NuxtJs 中使用 CkEditor? - Anyone knows how i can use CkEditor in NuxtJs? 如何使用 react-grid-layout 创建动态拖放布局 - How to create dynamic drag and drop layout with react-grid-layout
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM