ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Conway's Game of Life in Java + Processing

Автор: Barney Codes

Загружено: 2018-04-23

Просмотров: 12299

Описание: Conway's game of life is a classic programming exercise. In this challenge I build Conway's Game of Life, which is a simple simulator using cells and one of the most iconic examples of Cellular Automaton. Black is used to represent 'alive' cells while white symbolises 'dead' cells.

In each generation the state of a cell is determined by the number of alive cells it is surrounded by in the previous generation. Too many and it will die from over population, too few and it will suffer under population. If a dead cell has the correct number of neighbours it can be brought back to life due to population expansion.

The cells are stored in an integer array (as different forms of cellular automaton use different rules and cell states, you could try coming up with your own!).

Hope you enjoy the episode!

0:00 - Intro
2:15 - Initialising the cells
4:18 - Drawing cells
8:37 - Drawing the grid
10:26 - Calculating neighbours
15:58 - Generations
20:15 - Simulation speed
23:25 - Pausing
24:45 - Adding/removing cells with the mouse
27:47 - Clear the screen
30:12 - Drawing the cursor
32:35 - Final product

Make sure to check out the links below, they've got everything you need to get started!

Check out the files from this challenge on github: https://github.com/BarneyWhiteman/Cod...

Get Processing from here: https://processing.org/

Check out the rest of the Coding Challenges here:
   • Repelling Particles in Java + Processing  

Follow me:
Support the channel: https://www.youtube.com/@BarneyCodes/...
Twitter:   / barneycodes  
Reddit:   / barneycodes  

#creativecoding #processing #java

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Conway's Game of Life in Java + Processing

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Repelling Particles in Java + Processing

Repelling Particles in Java + Processing

Conway's Game of Life in Processing

Conway's Game of Life in Processing

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

John Conway's Game of Life - Walkthrough of Java-Based Implementation

John Conway's Game of Life - Walkthrough of Java-Based Implementation

Что такое Conway's Game of Life? Душкин объяснит

Что такое Conway's Game of Life? Душкин объяснит

Программирование на ассемблере без операционной системы

Программирование на ассемблере без операционной системы

Let’s BUILD a COMPUTER in CONWAY's GAME of LIFE ⠠⠵

Let’s BUILD a COMPUTER in CONWAY's GAME of LIFE ⠠⠵

Generics In Java - Full Simple Tutorial

Generics In Java - Full Simple Tutorial

Coding Challenge 168: MandelBulb 3D Fractal

Coding Challenge 168: MandelBulb 3D Fractal

7.3: The Game of Life - The Nature of Code

7.3: The Game of Life - The Nature of Code

Как финский гик ВЫНЕС Майкрософт и стал богом айти // Линус Торвальдс

Как финский гик ВЫНЕС Майкрософт и стал богом айти // Линус Торвальдс

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

Как устроена компьютерная графика? OpenGL / C++

Как устроена компьютерная графика? OpenGL / C++

Create Life From a Simple Rule

Create Life From a Simple Rule

Почему любители часто круче «профессионалов»?

Почему любители часто круче «профессионалов»?

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Кодирование игры «Жизнь»

Кодирование игры «Жизнь»

I Made a Zero Player Game

I Made a Zero Player Game

Coding Challenge 85: The Game of Life

Coding Challenge 85: The Game of Life

Но что такое нейронная сеть? | Глава 1. Глубокое обучение

Но что такое нейронная сеть? | Глава 1. Глубокое обучение

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]