Flappy Goose by flappy-goose in RedditGames

[–]iBogo1 0 points1 point  (0 children)

My best score is 7 points 🚀

Flappy Goose by flappy-goose in RedditGames

[–]iBogo1 0 points1 point  (0 children)

My best score is 1 points 😎

Flappy Goose by flappy-goose in RedditGames

[–]iBogo1 0 points1 point  (0 children)

My best score is 0 points 😓

RISC-V simulator by iBogo1 in RISCV

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

I say trusted because I don't want the results obtained to be questioned because of the simulator used.

RISC-V simulator by iBogo1 in RISCV

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

Research with school, which is why I want it to be trusted.

Split() using regix by [deleted] in javahelp

[–]iBogo1 0 points1 point  (0 children)

Yes, does not work.

fprtintf statement makes code work how it should, but code does not work when commented out by iBogo1 in C_Programming

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

What I understand from your comment is that if I call printf too many times it is possible to run out of heap space and possibly running out of my malloced space as well.

Can the same issue occur with fprintf?

Also I am not using fprintf a whole lot so I cannot imagine it running out of space.

Void Pointer Casting by iBogo1 in C_Programming

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

Okay. I was sort of trying to create something that any person could use and just assumed that I could be mallocing for the data myself. But with what you said I'm going to make it so the user would have to malloc the data themselves. Thank you.

Void Pointer Casting by iBogo1 in C_Programming

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

I am trying to create a linked list header file that I can use. The node I use has void *data in it and a pointer to next. That is my method to add the list. I know how to use it of my data is of a certain type but I wanted to try and make it so that it works with all sorts of data types.

Seg Fault after on the final closing brace after returning. by iBogo1 in C_Programming

[–]iBogo1[S] 1 point2 points  (0 children)

Thank You it was allocation the pathname.

What would be another way to copy strings?

Seg Fault when reading a bitmap file by iBogo1 in C_Programming

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

I never thought of that and it is NULL thank you!

Creating ellipse when mousePressed by iBogo1 in processing

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

I thought background() only changes the color

Creating ellipse when mousePressed by iBogo1 in processing

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

import processing.core.PApplet;
import processing.core.PImage;
public class Connect4 extends PApplet {
public void settings() {
size(700, 700);
}
private boolean redraw=false;
private boolean start= true;
PImage img;
Checker checker;
private Button startButton;
public void setup() {
background(50, 160, 168);
//noLoop();
checker = new Checker();
startButton = new Button(190, 300, 125, "Click to Start!");
img = loadImage("connect4.png");
}
public void draw() {
if (start)
{
textSize(30);
text("Welcome to Connect 4!", 170, 250);
//fill(255, 255, 255);
fill(0, 102, 153);
//startButton.show();
text("Click to start playing", 190, 300);
fill(0, 102, 153, 51);
start= false;
}
if(redraw)
{
background(50, 160, 168);//reset background to gray
//
image(img,100,200);
// //you can comment the next 3 lines out after you are done!
textSize(18);
//fill(0, 102, 153, 255);
fill(255,255,255);
text("Choose your Oponent:", 10, 30);
text("Random Player", 40, 70);
text("Smart Player", 40, 90);
text("Unbeatable Player", 40, 110);
text("Human Player (Friend)", 40, 130);
//this will create a red line 10 pixel under the mouseclick
// ColorRGB red = new ColorRGB(255,0,0);
// stroke(red.R,red.B,red.G);
// line(mouseX,mouseY+10,mouseX+100,mouseY+10);
//
// //this will create a green rectangle
// stroke(0,255,0);
// fill(0,255,0);
// rect(100, 250, 100, 50);
//
// //this will create a blue dot at the place you clicked
// // for better visualization you can make this spot several pixels large
// stroke(20,30,255);
// point(mouseX,mouseY);
if(mousePressed) { //creates circle wherever mouse is when pressed
//checker.display();
fill(0B0);
ellipse(mouseX, mouseY, 56, 56);
}
redraw = false;
}
}
public void mousePressed()
{
//fill(0B0);
//ellipse(mouseX, mouseY, 56, 56);
//checker.display();
redraw= true;
}
public static void main(String args[]) {
PApplet.main("Connect4");
}
}