gargiman / ija Goto Github PK
View Code? Open in Web Editor NEWProjects made for IJA (Java Programming Language)
Projects made for IJA (Java Programming Language)
The ghost object should be created, but it should not move on its own. It should wait for an external trigger.
The implementation must be able to compile and run using the provided class Homework2, which launches the maze visualization and displays changes in the object positions.
A CommonField interface derived from Observable is available in the supplied tool.
Choose one option of implementation:
The CommonField interface represents a field that can also be an Observable object.
The AbstractObservableField class, which implements the CommonField interface and represents a base class with a standard implementation of means for registering Observer objects and ensuring their notification.
The implementation must satisfy the conditions specified by the provided test class and interface and class contracts.
There are two options for implementing the Observable interface - CommonField interface and AbstractObservableField class. The solution should choose one of them for the implementation.
The implemented solution must use the Observer design pattern to inform the tool objects about changes in the state of the game objects (Pacman and ghost). The provided tool includes the necessary interfaces and classes for implementing the Observer pattern.
For this, the Observer design pattern is used. The delivered archive contains ready-made interfaces and classes for the implementation of the pattern (it is described in the documentation). Incorporate the Observer pattern into your solution using these elements.
When a game object is added or removed from a field, the field should inform the dependent objects about the change.
After receiving the notification from the field, the dependent objects should correctly visualize the state of the field.
Pacman object should have a life counter which is initialized to 3. Whenever Pacman and the ghost object collide, Pacman's life counter should be decreased by 1. It is not necessary to handle the destruction of the object when the life counter reaches 0.
It will be set to 3 when created. Encountering a ghost on the same square reduces the number of lives by 1. The object's demise when reaching 0 does not need to be resolved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.