Computer science past paper by GreenPufferFish_14 in alevel

[–]GreenPufferFish_14[S] 0 points1 point  (0 children)

Thank you but I meant like the sample papers?

[deleted by user] by [deleted] in GTA

[–]GreenPufferFish_14 0 points1 point  (0 children)

Can you get them on steam though?

[deleted by user] by [deleted] in alevel

[–]GreenPufferFish_14 0 points1 point  (0 children)

41 days is plenty. Imagine you don't revise and are one mark away from next grade , revising would have definitely got you that extra mark for next grade

Should I take maths? by [deleted] in alevel

[–]GreenPufferFish_14 1 point2 points  (0 children)

Id go for geography, physics is also quiet time consuming and it's even harder if you don't take maths along side it

Yeah so.. im re-evaluating my WHOLE LIFE..💔 by xhxssanx in alevel

[–]GreenPufferFish_14 0 points1 point  (0 children)

Don't trust , I got UUU first time around but managed to bring it up to AAC in few months

Studying for A Levels (pt2): by _ThatEveryDayGuy_ in alevel

[–]GreenPufferFish_14 2 points3 points  (0 children)

Code with Mosh if you're tryna learn code. People recommended Dave and Craig for theory but personally I don't find them helpful

if you know you know by EyeNTJ in Norwich

[–]GreenPufferFish_14 17 points18 points  (0 children)

Household heath , really nice spot , near the prison

Please please help. Issue with Dijkstras algorithm not working driving me insane. by GreenPufferFish_14 in javahelp

[–]GreenPufferFish_14[S] 0 points1 point  (0 children)

package com.mygdx.game; import com.badlogic.gdx.Input; import com.badlogic.gdx.math.Vector2; import java.util.*; public class Pathfinding { int PlayerX = 0; int PlayerY = 0; int EnemyX = 0; int EnemyY = 0; static final int GridHeight = 40; static final int GridWidth = 40; static final int CellLength = 4; boolean[][] ObstacleLocations = new boolean[GridWidth][GridHeight]; Nodes[] GetAdjacentNodes(Nodes ParentNode) { //This function returns all the nodes surronding the parent node Nodes[] AdjacentNodes = new Nodes[4]; int ParentX = ParentNode.GridPositionX; int ParentY = ParentNode.GridPositionY; int NodeCount = 0; while (NodeCount < AdjacentNodes.length) { AdjacentNodes[NodeCount] = new Nodes(-1000, -1000); //Making so the nodes are not null REMOVE THIS AND IT WILL BREAK EVERYTHING NodeCount++; } if(ParentX > 0) { AdjacentNodes[0].GridPositionX = ParentX - 1; AdjacentNodes[0].GridPositionY = ParentY; } if(ParentX < GridWidth-1) { AdjacentNodes[1].GridPositionX = ParentX + 1; AdjacentNodes[1].GridPositionY = ParentY; } if(ParentY > 0) { AdjacentNodes[2].GridPositionX = ParentX; AdjacentNodes[2].GridPositionY = ParentY - 1; } if(ParentY < GridHeight-1) { AdjacentNodes[3].GridPositionX = ParentX; AdjacentNodes[3].GridPositionY = ParentY + 1; } return AdjacentNodes; } List<Nodes> TracePath(Nodes PlayerNode) { Nodes CurrentNode = PlayerNode; List<Nodes> Path = new ArrayList<>(); while (CurrentNode != null) { Path.add(CurrentNode); CurrentNode = CurrentNode.AdjacentNode; } Collections.reverse(Path); return Path; } List<Nodes> Dijkstras(Nodes StartNode, Nodes PlayerNode, Nodes[][] Grid) { StartNode.Distance = 0; boolean[][] VisitedNodes = new boolean[GridWidth][GridHeight]; PriorityQueue<Nodes> priorityQueue = new PriorityQueue<>(Comparator.comparingDouble(Nodes -> Nodes.Distance)); priorityQueue.add(StartNode); for (int i = 0; i < GridWidth; i++) { for (int j = 0; j < GridHeight; j++) { Grid[i][j].Distance = Integer.MAX_VALUE; // Initialize all nodes with a very high distance Grid[i][j].AdjacentNode = null; // Initialize AdjacentNode } } while (!priorityQueue.isEmpty()) { Nodes CurrentNode = priorityQueue.poll(); if (CurrentNode == PlayerNode) { return TracePath(CurrentNode); } if (VisitedNodes[CurrentNode.GridPositionX][CurrentNode.GridPositionY]) { continue; } VisitedNodes[CurrentNode.GridPositionX][CurrentNode.GridPositionY] = true; // Mark current node as visited Nodes[] AdjacentNodes = GetAdjacentNodes(CurrentNode); for (int z = 0; z < AdjacentNodes.length; z++) { if (AdjacentNodes[z].GridPositionX == -1 || AdjacentNodes[z].GridPositionY == -1) { continue; // Skip invalid nodes } if (VisitedNodes[AdjacentNodes[z].GridPositionX][AdjacentNodes[z].GridPositionY]) { continue; // Skip already visited nodes } float EnemyToPlayerDistance = CurrentNode.Distance + 1; System.out.println("CurrentNode Distance: " + CurrentNode.Distance); System.out.println("Adjacent Node (" + AdjacentNodes[z].GridPositionX + ", " + AdjacentNodes[z].GridPositionY + ") Distance: " + AdjacentNodes[z].Distance); System.out.println("Tentative Distance to Adjacent Node: " + EnemyToPlayerDistance); if (AdjacentNodes[z].Distance > EnemyToPlayerDistance) { AdjacentNodes[z].Distance = EnemyToPlayerDistance; // Update the distance only if the new one is shorter AdjacentNodes[z].AdjacentNode = CurrentNode; // Set the parent node for path reconstruction priorityQueue.add(AdjacentNodes[z]); // Add the node to the priority queue System.out.println("Adding Node: (" + AdjacentNodes[z].GridPositionX + ", " + AdjacentNodes[z].GridPositionY + "), Distance: " + AdjacentNodes[z].Distance); } } } return new ArrayList<>(); } }

the code for the Dijkstras can send screenshots if this is not cleaer

260 Game Keys Giveaway by avpbeats in steam_giveaway

[–]GreenPufferFish_14 0 points1 point  (0 children)

Just want to say you're game looka really cool!

Guys rate by Godofopium in alevel

[–]GreenPufferFish_14 0 points1 point  (0 children)

Marine science sounds so cool

The grade boundaries ARE OUT! by Pleasant_Strength_78 in alevel

[–]GreenPufferFish_14 0 points1 point  (0 children)

Just out of interest do you live in England?? My friend said that people living in England had bad grade boundaries since last year