sparkingcircuit

joined 2 years ago
[–] sparkingcircuit@lemmygrad.ml 15 points 9 months ago (2 children)

Maybe you could write a feature request on the Lemmy Repository for the ability to use other instance's emotes.

[–] sparkingcircuit@lemmygrad.ml 9 points 9 months ago (1 children)

Fantastic video! Do keep in mind however, that Thunderf00t is a very socially and economically conservative person of which you should watch with caution. I mostly keep to watching his Elon dunk videos and his pseudo-scientific-Kickstarter de-legitimizing videos.

[–] sparkingcircuit@lemmygrad.ml 4 points 10 months ago

100%, to go out and touch grass on occasion really helps keep the depressive states at bay.

[–] sparkingcircuit@lemmygrad.ml 4 points 10 months ago (2 children)

Welcome back! Glad to see how much better your doing.

[–] sparkingcircuit@lemmygrad.ml 4 points 1 year ago* (last edited 1 year ago)

Shattered pixel dungeon is a rogue-like dungeon crawler that is beginner friendly and still fun to long time players. It is offline, with no advertisements, and open source. You can get it from:

Oh, that explains it! Thank you!

YouTube application on a Vizio smart tv.

[–] sparkingcircuit@lemmygrad.ml 4 points 1 year ago (2 children)

Normally I do too, unfortunately I've been forced to use some miserable smart tv as of late.

 

Had anyone else noticed a sharp uptick in military recruitment ads as of the past few days?

[–] sparkingcircuit@lemmygrad.ml 3 points 1 year ago* (last edited 1 year ago)

China's take on the Japanese government's handling of the situation, largely due to some of the isotopes they haven't filtered out. Particularly the strontium, iodine, and carbon variants. These have leaked into said wastewater due to the meltdown in several of Fukushima's reactors.

 

I've been working on re-implementing a board game in C. However, when running the players positions don't increment.
Current output:

 6,  9,  7,  6,  5,  5,  8,  7
 6,  9,  7,  6,  5,  5,  8,  7

Expected output:

 6,  9,  7,  6,  5,  5,  8,  7
14, 15, 19, 16, 13, 13, 14, 17

Code:

#include <stdlib.h>
#include <stdio.h>

// Define types here:
typedef enum {false, true} bool;

// Define constants here:
const unsigned char MAXPLAYERS = 7;	//Game has max of 8 players
const unsigned char SPACES = 40;	//Board has 40 spaces
const unsigned int SEED = 51732;	//Seed for random numbers
const unsigned int DIE = 6;		//Number of sides of die

// Define variables here:
unsigned char player = 0;
unsigned char player_position [] = {0, 0, 0, 0, 0, 0, 0, 0};
unsigned char die = 0;

// Define functions here:
// Moves player Input spaces.
void move_player (char moves) {

player_position [player] += moves;
if (player_position [player] > SPACES) {

	player_position [player] -= SPACES;

}

}

// Switches active player in order.
void increment_player () {

player ++;

if (player > MAXPLAYERS) {

player = 0;

}

}

// Returns random number between 1 - Input.
unsigned char rand_num (unsigned char max) {

unsigned char i;

i = rand () % max + 1;

return (i);

}

// Sets dice variable && returns 1 if double.
bool roll_dice () {

unsigned char a = rand_num (DIE);
unsigned char b = rand_num (DIE);

die = a + b;

return (0);

}

// Main logic
int main () {

char input = 0;

srand (SEED);
printf ("Game client started.\n",
	"Press enter to iterate turns.\n");

while (1) {

scanf ("%c", &input);

for (unsigned char i; i <= MAXPLAYERS; i++) {

	roll_dice ();
	move_player (die);

	increment_player ();

}

printf ("%2i, %2i, %2i, %2i, %2i, %2i, %2i, %2i\n",
	player_position [0], player_position [1], player_position [2],
	player_position [3], player_position [4], player_position [5],
	player_position [6], player_position [7]);

}

return (0);

}
0
submitted 2 years ago* (last edited 2 years ago) by sparkingcircuit@lemmygrad.ml to c/genzedong@lemmygrad.ml
 

You weren't an ML, but made some excellent communist content none the less. Hope they're alright.
EDIT: Upon looking around, I found their Patreon. It appears she's taking a brake from and or retiring from YouTube due to mental health complications.

 

KYIV, UKRAINE—In a desperate plea for aid in the continued effort to expel his nation’s Russian occupiers, sources reported Friday that President Volodymyr Zelensky had called upon the United States to send a totally psycho marine to assist in Ukraine’s war effort. “You know, one of those expertly trained, one-man-army guys who carries an arsenal on his back and has killed so many people in combat he’s now cold, unfeeling, and completely insane—you gotta have at least one of those to spare, right?” said Zelensky, specifying that the ideal candidate would be a wild-eyed shirtless muscleman who functioned as a completely self-sufficient killing machine and could take out hundreds, if not thousands, of enemies all by himself. “In order to get the upper hand against Russia, we’re going to need your most batshit, balls-to-the-wall ex-special-forces guy. He’ll have a crazy name like Razor or Bloodhound or something, and he’ll always be blacking out and waking up covered in blood with a whole village dead around him. If he has a personal score to settle with the Russians, that’s great, but the most important thing is that he just kills and kills and kills and kills—sometimes using a cherished hunting knife that belonged to a fallen comrade, even though a gun would be faster. Honestly, he can kill a few Ukrainians too, if he wants, just so long as he gets the job done.” At press time, the U.S. Marine Corps had reportedly agreed to send “the craziest motherfucker” it had, just as soon as he had applied his face paint, donned a necklace of severed human ears, and stopped in for chest wax.

 

cross-posted from: https://lemmygrad.ml/post/487209

cross-posted from: https://lemmygrad.ml/post/487207

I remember watching a video from The Young Hegelian Youtube channel some time back regarding how the United States inspired Nazi Germany, but it seems to have been removed or privated sense then.

As such, I'm wondering if anyone kept a backup of the video, or knows of a mirror I can find it on?

 

Earlier today a comrade got a pretty good tankie instance for Mastodon on this post of theirs. So I was thinking, due such things exist for other federated platforms such as Pixelfed and Peertube? And if so, which are the best for our purposes?

 

Minetest

What is Minetest?

Click to expandMinetest is an open source voxel engine, designed for the creation of games in the same vain as Minecraft. In doing so it has a preinstalled, built in game, and vary mature modding API, that allows for the easy creation of mods/games. Furthermore, Minetest's built in game is in a mature state, that is fun to play with or without the aid of mods.

Why Minetest?

Click to expandThe reasoning behind why I chose Minetest is as follows:

  1. Minetest is Open Source
  2. Minetest requires few system resources to run properly
  3. Minetest's main game play loop is that of building/construction, a desire I imagine most of us would like to be able to play with more.

What is Open Source?

Click to expandOpen Source software must make the source code for it freely available, and allow the recipient of it to distribute that source code accordingly. Furthermore, that copy of their source code may be modified by them according to their wishes, without the need to ask for permission from it's original creator. These principles, enforced through the software licenses that use them, have allowed for the community driven development that created the likes of Lemmy, Linux, Android (Largely), VLC Media Player, and more have lead to stable and largely enjoyable user experiences for all of us, in a secure, community driven manner that benefits all of us.

Why Open Source?

Click to expandThe attributes described above allowed us to build our community around this wonderful piece of software (Lemmy), even without prior consent from it's own creators, or being kicked off for being "dirty reds".

Is Your Computer Fast Enough to Run It?

Click to expandI've gotten the game to run on a laptop with a single core Intel Atom processor with 1GB of RAM, so in all likely hood, you should be able to get this game running on your machine.

The Cons of Me Doing It.

Their are a number of things that could go wrong with my being responsible for doing it however. For example, as I am an Amerikkkan, it is entirely possible that this will be taken down, especialy seeing as the only way I would be able to afford to do this is via a $100 credit I have received for Linode, an Amerikkan cloud provider that would host my server. Furthermore, I am inexperienced with hosting anything online like this, so my ability to correct for DDoS attacks, trolls, and other internet shenanigans would be minimal, leading to long and frequent down times. Finally, as I would be operating this server alone, when I am sleeping or unavailable for work/school/etc any problems in the server would permeate while I'm unable to correct any of it.

view more: next ›