Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Pwnator

Pages: [1]
2
Discussion / MOVED: Now Doing Battlebots Replicas
« on: March 04, 2018, 07:49:11 AM »

3
Existing Games / A Dark Room
« on: September 19, 2013, 08:02:09 AM »
http://adarkroom.doublespeakgames.com/


So yeah. Makes much more sense than Cookie Clicker (implying CC has any sense at all), and just as addicting, if not more.


I believe you could Javascript the hell out of this, but the game is just too good to do so.

4
Off-Topic Discussion / Pwn needs help in C
« on: August 31, 2011, 07:09:16 AM »
On my way to create a two-way chat program using FIFOs, but unfortunately I can't even get my test program to work. >.<


Code: [Select]

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
/*A lot of excess headers because I'm supposed to add more functions, but that's for later*/

int main(void){
   char buffer[128];
   int fifofd;
   char fifoname[] = "chatfifo";
   int ret;


   ret = mkfifo(fifoname, S_IRUSR | S_IWUSR);


   if(ret<0){
      printf("'chatfifo' already exists.\nThis is the FIFO reader.\n");
      fifofd = open(fifoname, O_RDONLY | O_NONBLOCK);
      do {
         read(fifofd, buffer, sizeof(buffer));
         printf("Message retrieved> %s", buffer);
      } while (strcmp(buffer,"exit\n")!=0);
      close(fifofd);
      unlink(fifoname);
   }
   else{
      printf("'chatfifo' created.\nThis is the FIFO writer.\n");
      fifofd = open(fifoname, O_WRONLY | O_NONBLOCK);
      printf("Type in 'exit' to quit:\n");
      do {
         printf("Enter message to send> ");
         fgets(buffer, sizeof(buffer), stdin);
         write(fifofd, buffer, strlen(buffer)+1 );
      } while (strcmp(buffer,"exit\n")!=0);
      close(fifofd);
   }


   return 0;
}


The program should be able to run on two separate tabs/windows and should perform different tasks (one to write and the other to read). The do-while loop for the read() part just goes on in an infinite loop, which led me to a conclusion that read() returns a value of 0.


Now I have no idea where I went wrong - the 'if' block or the 'else' block. >.<

5
The Epic Showdown



7
DSL TC Showcases / Pwnator's Top-Notch DSL Showcase
« on: August 30, 2009, 10:45:26 PM »
Maybe it's time for me to make a DSL showcase. :D

So far, the only DSL bots I've built are the ones in tourneys and the ones going to the NAR AI. So here's the only 2 spare bots that're not used anywhere:



This is Flight Instructor. 3 Vlad spikes on a Perm 80, astro drive, 3 ants, 1mm plastic. Though I like the design, its steering is too slow, so fast bots can still KO it from the side. Moreover, the underside sheets still aren't wide enough to make it stable. So I rebuilt it, and this came out:



This time, I removed an ant, downgraded the wide ant wheels to regulars and upgraded to 1mm aluminum. I'm gonna give credit to Jules for inspiring me with his sh**AAR for this one. It's very much stabler than the first one, and the wedge actually helps in taking out rammers and pokers.

Oh well, back to stock for now... XD

8
Stock Showcases / Pwnator's Stock Showcase
« on: May 13, 2009, 08:58:10 AM »
Hmmm... might as well start my own.

Here's one of my latest bots. I finally got the urge to build a poker after Hydro showcased his first attempt. :P



Meet Sucker Punch. 8 spikes and an ice pick on each piston, adding up to a total of 32 irons and 4 picks. Might build a rammer next time.

Pages: [1]