Questions tagged [pacman]

Pacman is an arcade game developed by Namco and licensed for distribution in the United States by Midway, first released in Japan on May 22, 1980. For the package manager of the same name, use [pacman-package-manager] instead.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Pacman positioning after resizing window Frame

4 days I'm trying to figure out how to fix my Pacman movement to board. This is my project for studies. According to the project requirements, the game board (maze) must be implemented with JTable(...
Kawi's user avatar
  • 1
0 votes
0 answers
25 views

UniformCostSearch for Berkeley Pacman project1

So I am trying to make the pacman project from Berkeley and the UniformCostSearch function works except for one test and I am not very sure what the problem is. *** student solution: ...
ruscanca's user avatar
0 votes
1 answer
16k views

I am trying to make the Pac-Man game using only turtle random and math module

I am having trouble when Pac-Man collides with the wall. I have inputted a maze and using a for loop, I have drawn the maze. The Pac-Man movement is all working fine as well, but when it hits a wall, ...
gem 1234's user avatar
0 votes
0 answers
43 views

arch linux install error - zstd: symbol lookup error: zstd: undefined symbol: POOL_joinJobs

After update to latest version gnome 45 and latest kernel, I'm encountering an error when trying to install applications on my Arch Linux system ( using pacman, yay, paru or makepkg ). The error ...
Pamungkas Jayuda's user avatar
0 votes
1 answer
26 views

Docker Daemon not running possibly broken on my Arch system upon installing docker-desktop

I had docker running perfectly on my Arch setup then one day I thought to install docker-desktop on my system as going through docs I downloaded install binary extracted the docker binary and tried to ...
Priyanshu Jha's user avatar
2 votes
2 answers
1k views

pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout

I'm facing this issue in my wsl 2.0 Arch. After I update curl via pacman this error shows up. pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout ...
Dajmond's user avatar
  • 31
0 votes
0 answers
25 views

aur sync change database.sig

every time i run aur sync i get this error: signature from "email" is invalid error: could not sync dbs (invalid or corrupted database (PGP signature)) and then i get the same error in ...
bani's user avatar
  • 1
0 votes
0 answers
499 views

» PGP Signature is Invalid

I faced with a strange problem about aur and pacman. when i try aur sync or pacman -Syu I get error: signature from "Internal email" is invalid error: failed to synchronize all databases (...
bani's user avatar
  • 1
0 votes
1 answer
133 views

Bidirectional Search for Multiple Goal States

I'm implement bidirectional A* search for pacman food search problem using the Berkeley AI Materials. Can we apply the bidirectional A* search to this problem as it has multiple goal states (multiple ...
helqej ehqwioejiqw's user avatar
0 votes
1 answer
100 views

Pacman Collecting Coins

I tried two different way to collect coins and both didn't work. I don't know what I'm doing wrong. I'm coding in c#. Is there something I'm missing or is there something I'm supposed to do beforehand?...
angelelham's user avatar
-1 votes
1 answer
63 views

linux gnome online video play issue

I'm using arch linux with gnome. All the online video always show buffering but my network seems available(at least fast enough to browse stackoverflow).Actually when I get to a particular spot of the ...
alex's user avatar
  • 1
0 votes
1 answer
3k views

pacman: /usr/lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found

After instaling openssl, for some reason, pacman and yay started to return this: pacman -Sy pacman: /usr/lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by /usr/lib/libalpm.so.13) ...
jazz_man07's user avatar
0 votes
0 answers
313 views

Berkeley - Pacman Project - Food Heuristic

I am wondering if the one I came up with is non-trivial. According to the project's website : The trivial heuristics are the ones that return zero everywhere (UCS) and the heuristic which computes ...
RookieCookie's user avatar
2 votes
0 answers
631 views

How to install mingw-w64-x86_64-cmake at Ubuntu

Per this URL, https://packages.msys2.org/package/mingw-w64-x86_64-cmake, I use the command as follows to install mingw-w64-x86_64-cmake. It complains Unable to locate package mingw-w64-x86_64-cmake ...
user20208419's user avatar
0 votes
0 answers
81 views

Randomize Pacman maps, Javascript

I have to randomize the map (a different map each time it is opened) of pacman every time someone starts playing, I don't understand how I could do it. please help. I have a variable (world) that ...
user avatar
-1 votes
1 answer
60 views

How can my character decide on its own in which direction it can go?

I have to make my own Videogame in unity and I decided to redo the game Pacman, I am also very new to writing c# or coding in general. I am almost done with my project but the only thing I can`t ...
Katharina's user avatar
0 votes
2 answers
263 views

How to get Emacs on MINGW64 (Windows 10)

I currently use MINGW64 (Git Bash) as my terminal on my Windows 10 machine. It works great, I like it, but it only has Vim installed as an editor and I prefer Emacs. I'm unfortunately having a really ...
JoeBro391's user avatar
3 votes
1 answer
486 views

tidyverse issue with 4.2.1 update, what to do?

I am a beginner in R - i just updated to 4.2.1. i kept getting the error below. ive tried uninstalling R and Rtools, reinstalled them both. also reinstalled all of my packages. but i am still getting ...
gertrudious's user avatar
1 vote
0 answers
55 views

how to proportion a matrix of 0 and 1 numpy

I state that I am creating a pacman reinforcement training. The idea is to encode the positions of objects throughout the map (walls, ghosts, cookies, powers, etc ...) in an n-dimensional tensor of 0 ...
NicelyCLa's user avatar
1 vote
2 answers
217 views

How to make ghost in pacman move slower? Python

I'm writing pacman in pygame. I've got a problem with ghost moving. It is moving too fast. When it moves by speed 1, it is very fast. When the speed is 0.1, my code doesn't work. Here is the ghost ...
hino_Ukraine's user avatar
0 votes
1 answer
61 views

How can I make pacman continue to move after I stopped pressing a specific key?

I want the main character to continue to move in the specific direction I chose until I press another key. This is the code for what I did: for event in pygame.event.get(): if event.type==pygame....
qwertyui's user avatar
0 votes
1 answer
88 views

I'm trying to create my version of pacman with pygame. How can I replace the white moving square with my image of the main character?

This is my code. There are some errors that I can't fix, it's the first time I use pygame. Can somebody help me? import pygame pygame.init() pp = pygame.image.load("warrior4.gif") pp = ...
qwertyui's user avatar
0 votes
1 answer
116 views

Require holding key down for movement in pacman pygame with game pad

I've been modifying the PACMAN pygame code from here. Currently, I have a function that requires players to hold down a direction key in order to keep moving in that direction. The code for that is: ...
djl's user avatar
  • 277
0 votes
1 answer
131 views

Alternate two images in java (open and close the pacman's mouth)

I would be trying to replicate the Pacman game in Java. I made sure that through the keyboard I can make the player move and rotate it correctly by replacing the image. I can't figure out now how to ...
user avatar
2 votes
1 answer
487 views

Pathfinding javascript with obstacles

I'm working on a custom Pacman game using Javascript canvas. I have different classes, one for the player, another one for the enemies and another one for the walls in the board. Inside my wall class ...
Raúl's user avatar
  • 159
0 votes
1 answer
131 views

Why is my animation not detecting page width?

I am trying to get this pacman animation to cycle through an array of images and reverse direction when it hits the edge of the page. I tried debugging in Chrome and it gave me the following error &...
Richard Smithmeyer's user avatar
0 votes
0 answers
45 views

How to make sure that the randomized coordinates will not fall into specific coordinates in a 2D array? The language is C

I am creating a game in C, and I want to randomly place blocks and foods inside a 2d array. I have randomized the x and y coordinates of the blocks and the food into 1d arrays, i.e. foodCol[] and ...
marci's user avatar
  • 9
1 vote
1 answer
362 views

Is BFS or DFS an efficient search algorithm for Ms Pacman

I am working on implementing a search algorithm for the Ms Pacman AI. I thought it would be a good idea to start off with some basic searches like BFS or DFS. I just implemented a BFS but when i ran ...
dynamo's user avatar
  • 195
0 votes
1 answer
312 views

Make pacman move randomly

I am creating a pacman game using noobtuts' tutorial. https://noobtuts.com/unity/2d-pacman-game However I want to make pacman to be able move on its own. My idea is to make it choose a random ...
Naomi Kho Yining's user avatar
7 votes
4 answers
8k views

Invalid PGP Signature when updating packages in MSYS2 - Despite fixes

Ever since June 2020, I have been unable to update my packages with pacman -Syu. When I try, I get the following error: (It gets up to "Checking package integrity", then shows errors like ...
Tyler Shellberg's user avatar
0 votes
1 answer
27 views

Have issues with collision detection in pygame

def movement(self): prevX = self.x prevY = self.y key = pygame.key.get_pressed() if key[pygame.K_w]: self.y -= 32 elif key[pygame.K_s]: self.y += 32 elif ...
rob-roibu's user avatar
1 vote
1 answer
172 views

Anyone know why pacman is not respecting the walls? When i press the keys to move pacman teleports between the walls

i'm trying to make a pacman game like pygame, now i just want him to walk through the maze without going beyond the walls of the maze. However I have faced some problems, when I press the keys to move ...
Gustavo Figueiredo's user avatar
0 votes
1 answer
92 views

plotting score in the Pac-Man model in NetLogo

A seemingly simple question, How can I plot the "score" in the "Pac-Man" model in NetLogo I have tried the obvious approaches (adding a Plot to the interface, telling it to "...
N Phillips's user avatar
0 votes
1 answer
1k views

Why does my Alpha-Beta pruning expand more nodes than necessary?

I am currently implementing an alpha-beta pruning algorithm for a minimax function. This exercise corresponds to the multiagent section of the PacMan Project at Berkeley University. My implementation: ...
MaAlonsoA's user avatar
0 votes
1 answer
66 views

I accidentally put my 2D colliders on the Main Camera and not my Maze Sprite

I am currently following a tutorial to make Pacman in Unity. I was told to use 2d colliders around the little blocks that Pacman goes around. I've accidentally put the colliders on the main camera and ...
WeirdGirlGamer's user avatar
0 votes
1 answer
136 views

Ghost eyes in SVG PacMan are rendered correctly in Firefox, but not in other browsers

The GitHub repository of my SVG PacMan is available here: https://github.com/FlatAssembler/SVG-Pacman You can see it alive here: http://flatassembler.github.io/pacman.html The function for drawing ...
FlatAssembler's user avatar
-3 votes
1 answer
170 views

How to animate pacman? [closed]

I am writing a pacman game in C++. I am trying to figure out a good way to switch between 2 images. Currently, If I move pacman with the keys the image changes to pacman image facing the right way ...
marktilbrook's user avatar
2 votes
1 answer
3k views

Berkeley AI class - PacMan food heuristic without mazeDistance?

I'm taking a similar class to Berkeley's AI class, and I'm trying to find the foodHeuristic for Q7(questions can be found here), however I'm not allowed to use mazeDistance as it's implementation uses ...
ChikChak's user avatar
  • 935
3 votes
1 answer
194 views

How I make my python code delete the pills from my pac man game?

My code for Pac-Man make all the cells switch, so when I pass Pac-Man through the pills, he doesn't eat it, just ignore them and change position. I want the pills to disappear when he pass through ...
Marina's user avatar
  • 81
2 votes
1 answer
296 views

How do I randomly move objects in a maze using pygame? [closed]

This is a code for Pac-Man. I already have a moving Pac-man and the collision w/ the ghosts, but I don't know how to make them randomly move on the map. I don't need them to chase the Pac-Man, just to ...
Marina's user avatar
  • 81
3 votes
1 answer
373 views

Pacman Collisions in Java

I am making a pacman arcade game on Java but my collisions have problems. If you see my image here my pacman sprite stands still (no x or y movement) when visiting a corner or when trying to turn back ...
Tony H's user avatar
  • 53
-2 votes
1 answer
384 views

Pacman Game Using Pygame on Mac [duplicate]

Im building a pacman game using pygame on my MacBook, I've written the code in visual studio code and have used pip install pygame in the terminal, however, when I run the python script for my game I ...
HAHAPleaseHelpMe's user avatar
0 votes
0 answers
141 views

How can I change or add a class of an element created in JavaScript? (Pacman change theme ghosts)

I am developing a simple Pac-man game for school. (HTML, CSS, Vanilla JavaScript) I would like to be able to change the theme of the game (From space to a floral-theme). Changing the background ...
vntryv's user avatar
  • 1
0 votes
1 answer
99 views

Element isn't moving smoothly

I'm learning JavaScript for only 4 days now and I want to create Pac-Man :D. Now my Pac-Man (currently it's just a button) should move 2 pixels every 100ms but it only moves 20 pixels in 1 second. In ...
D1i2m3's user avatar
  • 3
1 vote
0 answers
384 views

How can I check for collisions against a rectangle shape in sfml

I'm trying to check for collisions against a shape stored in a 2D array. I'm trying to use for logic in a Pacman clone I'm creating. I have no issue detecting collisions between two sprites, however I ...
broncoian2's user avatar
1 vote
1 answer
159 views

keycode movement issue with javascript (PacMan)

<script> var world = [ [2,2,2,2,2,2,2,2,2,2], [2,1,1,2,1,1,1,1,1,2], [2,1,1,2,1,2,2,2,1,2], [2,1,1,2,1,2,1,2,1,2], [2,1,1,2,1,2,1,2,1,2], [2,...
nessiah's user avatar
  • 21
0 votes
1 answer
615 views

Pygame: How to insert sprite instead of drawing my character in pygame

So I was following some videos on youtube on how to create Pacman using Pygame and it only showed how to draw a simple yellow circle, I'm trying to replace that simple shape with an actual sprite but ...
Hyperion's user avatar
  • 198
0 votes
0 answers
812 views

How to solve "KeyError: '/conv2d_1/kernel:0'"

I am trying to use the colab to run the gym package with pacman, since the spec in colab is more powerful than my notebook. This program is successful simulate in Jupyter in my notebook, which using ...
Koh PIN WAI's user avatar
1 vote
0 answers
1k views

Python - Pacman heuristic is not consistent

As part of a AI homework I have to solve the Pacman Project from UC Berkeley. You can find the (already solved) source code here under search/searchAgents.py: source code The problem I have is that ...
abcdefghi019283's user avatar
-1 votes
1 answer
37 views

How can I generate a new position only when it arrives there?

I created these functions: function generatePosition(){ var locX = Math.floor(Math.random() * 12) + 5; var locY = Math.floor(Math.random() * 10) + 3; console.log('MOVE 0 ' + locX + ' ' +...
Sara Briccoli's user avatar

1
2 3 4 5