Skip to content

Instantly share code, notes, and snippets.

tim, chaotic female elven Wizard
---------
|.......|
|...@...| -----
|...@...| |...
|.......| ------- --..---------
| |.......| | ...[...-- --...|.......|
@timvisher
timvisher / -
Created January 17, 2015 02:44
+edf3
repeat
+d54a
~$1366$eNrtVMtOwlAQtbS0BUZaYIEEEtz74lEQn4BF8TOMRpSEKHHlzmuMujFxZfwR1+bShYmJez/BtSuXOFPaoiaiRtyZJidn7jkz96S5GeACS4lcZBfphwRyaRxBEAhkhGDCEljTRBYpc5llIItfCs8ksqhkkVQeYNuH7db+QXNv5wVPRgIE0zTj8cmx6gRxEcGwO/3cEaQrl2UE7mNxwed6up5H9jztTz3Kv2fYHu0LD6l/bDF+OyXtMeg/uVOXbXxoG1z236M3oOJ3Ve6pzz/OYgwvi/TNLMolwpiC0LItEqlUKuf0O4ntvhfObNWGI4qrIVhUnhCINlAvJ9YhOL4eWFq4RlI3HZVlIQd5MMDHJZaDDNC90VJvh6isHqyH6lAPkboe7KlQQ2EapmASJmxhxmmTSYj5o3JEjih0EKOH/KYpqsRk0qkppjjC5h0mKXR9rLF1e19ka9qqXtNN3dTM8Eq4Gq6OVqECZViGJViEBZiHOSjBLBShgKnzmD6L19O+S9KCSzasV7bBn3o=
move D0
@timvisher
timvisher / -
Created January 13, 2015 18:42
for (int i = 0; i < 60; i++)
{
int role = ROLE_NONE;
int race = ROLE_NONE;
int gender = ROLE_NONE;
int align = ROLE_NONE;
player_selection(&role, &race, &gender, &align, 1);
printf("%d,%d,%d,%d\n", role, race, gender, align);
sleep(1);
}
@timvisher
timvisher / -
Created January 13, 2015 16:56
srand(time(NULL));
printf("%ld", random());
exit(0);
Starting build, with features: jansson
Finding dependencies of optionset:specific_version (rule _git_hash)... Running build rule find_source_files...
Found .indent.pro, COPYING, README, and 362 other objects.
Running build rule _makedefs_date...
Built libnethack/include/date.h.
Finding dependencies of libnethack/include/date.h (rule add_precompiled_header_ Finding contents of libnethack/include/date.h (rule header_files_are_files)... Finding dependencies of libnethack/include/date.h (rule headerstub_dependencies Finding dependencies of libnethack/include/date.h (rule ch_file_dependencies).. Finding contents of libnethack/include/date.h (rule headers_depend_on_precompil Finding contents of libnethack/include/date.h (rule no_precompiled_header_recur Finding contents of libnethack/src/version.c/version.c (rule c_embedded_aimake_ Finding contents of libnethack/src/version.c/version.c (rule c_embedded_aimake_
/* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
/* Last modified by Sean Hunt, 2014-12-29 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#include "nhcurses.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <signal.h>
@timvisher
timvisher / -
Created January 13, 2015 14:59
for (int i = 0; i < 1000; i++)
{
int role = ROLE_NONE;
int race = ROLE_NONE;
int gender = ROLE_NONE;
int align = ROLE_NONE;
player_selection(&role, &race, &gender, &align, 1);
printf("%d,%d,%d,%d\n", role, race, gender, align);
}
exit(0);
@timvisher
timvisher / -
Created January 13, 2015 13:40
🐘 ../aimake -i ~/testplayerselect --without=gui ..
Please use an empty directory for starting new builds. at ../aimake line 7900.
at ../aimake line 6270.
main::__ANON__('Please use an empty directory for starting new builds. at ../...') called at ../aimake line 7900
@timvisher
timvisher / playerselect.h
Last active August 29, 2015 14:13
Test Random Players in nh4?
#ifndef PLAYERSELECT_H
#define PLAYERSELECT_H
nh_bool
player_selection(int *out_role, int *out_race, int *out_gend, int *out_align, int randomall);
#endif
(ns nhss.standard-level-data-macros)
(defn features []
{:down-stair \>
:up-stair \<
:space \·
:boulder \0
:hole \^
:player \@
:empty \space