Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 292 293 [294] 295 296 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 902599 times)

Puzzlemaker

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4395 on: April 27, 2013, 01:31:42 pm »

How complex a geometry are they attempting to navigate? Flocks of birds do not typically live deep inside enclosed labyrinths they can't fly over.

Yeah, but I am just using the boid theory, it's actually being done on a 2d plane right now.  Think FPS with flocking enemies, is the general idea.
Zombie style enemies? You can make a graph of "scent nodes" across the map, populate them with the amount of protagonist's scent using diffusion along non-obstructed graph edges, and just nudge your boids to move in directions with positive scent gradients. That should give your boids enough info to always find you (this also works on non-discrete maps), all while completely avoiding any sort of precalculated pathfinding.

I was thinking about that, but I don't know how that would work with more then one enemy, and I wanted to be able to pit groups against each other for funzies.
Logged
The mark of the immature man is that he wants to die nobly for a cause, while the mark of the mature man is that he wants to live humbly for one.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4396 on: April 27, 2013, 02:40:28 pm »

How complex a geometry are they attempting to navigate? Flocks of birds do not typically live deep inside enclosed labyrinths they can't fly over.

Yeah, but I am just using the boid theory, it's actually being done on a 2d plane right now.  Think FPS with flocking enemies, is the general idea.
Zombie style enemies? You can make a graph of "scent nodes" across the map, populate them with the amount of protagonist's scent using diffusion along non-obstructed graph edges, and just nudge your boids to move in directions with positive scent gradients. That should give your boids enough info to always find you (this also works on non-discrete maps), all while completely avoiding any sort of precalculated pathfinding.

I was thinking about that, but I don't know how that would work with more then one enemy, and I wanted to be able to pit groups against each other for funzies.
Just make all people of one team share a scent. Simple as that.
Logged

Mego

  • Bay Watcher
  • [PREFSTRING:MADNESS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4397 on: April 29, 2013, 03:12:28 pm »

For my Computer Organization and Architecture course, I had to write a two-pass assembler and a machine language interpreter for an ISA that the professor gave us. Having successfully completed both of those, I wrote a BrainFuck compiler just for fun. There are few things more satisfying than seeing programs work beautifully.

gigaraptor487

  • Bay Watcher
  • Escaped Lunatic now civilised
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4398 on: May 11, 2013, 03:18:00 am »

Hello, i have done c for about three months with some little snippets prior and i would like to move onto c++. I bought a book on c++ but i have a problem. I read through a few of the first chapters and they seemed near identical to c. What i would like to know is where to start in the c++ book if i already know the basics they share (like basic arrays, functions, variables and bitwise etc).


Thanks
Logged
Hehe, you thought there would be an interesting sig here

I now run a program which brings old multiplayer games back to life : click

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: if self.isCoder(): post() #Programming Thread
« Reply #4399 on: May 11, 2013, 03:27:29 am »

Most of C++'s features are in Objects (OO/OOP), such as classes and namespaces, and in the STL, which provides nifty containers that do common stuff better than you could implement them yourself, with one small exception related to threadness. O.o STL has vectors, maps, queues, hash tables, you name it.
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4400 on: May 12, 2013, 06:19:34 pm »

Logged

Slayerhero90

  • Bay Watcher
  • Time for Taako's opinion.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4401 on: May 12, 2013, 06:58:46 pm »

So I released Blast. Aw yeah.
Still think you should have named it Jeweller.
Logged
My tumblr.
Yeah no I don't haunt here anymore. Peace

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: if self.isCoder(): post() #Programming Thread
« Reply #4402 on: May 12, 2013, 06:59:50 pm »

Jewellblaster?
Logged

Markus

  • Bay Watcher
  • [Alignment:Lawful Bacon]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4403 on: May 14, 2013, 07:41:54 pm »

Well! Apparently, all the people I tried to send interview questions to via email fell through.

Would any persons working who either work with code or with software/hardware (sadly, people who deal only with tech support are not eligible) here with at least a bachelor's degree in their area like to answer some interview questions in a microsoft word document and then send their answers back to me? Preferably before this Friday?

There's no real limit on HOW many, but there is a time limit. A strict one, too. I also require your real names on the form. I know, dangerous thing to be asking on the internets. OH NOES SCAM.

I did not even procrastinate this time. Just my luck.
Logged

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: if self.isCoder(): post() #Programming Thread
« Reply #4404 on: May 14, 2013, 07:51:11 pm »

Well! Apparently, all the people I tried to send interview questions to via email fell through.

Would any persons working who either work with code or with software/hardware (sadly, people who deal only with tech support are not eligible) here with at least a bachelor's degree in their area like to answer some interview questions in a microsoft word document and then send their answers back to me? Preferably before this Friday?

There's no real limit on HOW many, but there is a time limit. A strict one, too. I also require your real names on the form. I know, dangerous thing to be asking on the internets. OH NOES SCAM.

I did not even procrastinate this time. Just my luck.
Could you perhaps elaborate on what this is in reference to?
Logged

Markus

  • Bay Watcher
  • [Alignment:Lawful Bacon]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4405 on: May 14, 2013, 07:54:00 pm »

Well! Apparently, all the people I tried to send interview questions to via email fell through.

Would any persons working who either work with code or with software/hardware (sadly, people who deal only with tech support are not eligible) here with at least a bachelor's degree in their area like to answer some interview questions in a microsoft word document and then send their answers back to me? Preferably before this Friday?

There's no real limit on HOW many, but there is a time limit. A strict one, too. I also require your real names on the form. I know, dangerous thing to be asking on the internets. OH NOES SCAM.

I did not even procrastinate this time. Just my luck.
Could you perhaps elaborate on what this is in reference to?
School project for career research. It's among the last things I need to do, but my contacts all fell through at the same time.
Logged

forsaken1111

  • Bay Watcher
    • View Profile
    • TTB Twitch
Re: if self.isCoder(): post() #Programming Thread
« Reply #4406 on: May 14, 2013, 08:00:15 pm »

Oh, I thought this was some sort of awkward job application thing you were doing. ^.^

I'm confused, you say you need people who either code or work with hardware/software, but you don't want people who do technical support. Who do you have in mind that works regularly with electronics but not in a tech support capacity? Do you need engineers who design the component boards?
Logged

GlyphGryph

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4407 on: May 14, 2013, 10:32:36 pm »

Yeah, I imagine he wants hardware designers and engineers from that side.

Anyways, I'm open to questions. Glyphgryph@gmail.com

Although the bachelors requirement seems odd, I've at least managed to get that. (Most of the best programmers I know don't have degrees, having gotten hired before they graduated based on their work)
Logged

Markus

  • Bay Watcher
  • [Alignment:Lawful Bacon]
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4408 on: May 15, 2013, 05:59:36 am »

Oh, I thought this was some sort of awkward job application thing you were doing. ^.^

I'm confused, you say you need people who either code or work with hardware/software, but you don't want people who do technical support. Who do you have in mind that works regularly with electronics but not in a tech support capacity? Do you need engineers who design the component boards?
Not exactly. I mean people who's only job is tech support. For instance, my first successful contact was an application software developer, but he also did tech support. His job had him do the latter, his purpose in being there was the former.

Basically, if you fit any of these except only fitting computer support specialist:

http://www.bls.gov/ooh/computer-and-information-technology/home.htm

Yes, I know, it's very impromptu.

Hardware engineers still work to, y'know. I'll get these questions to you later, when I'm at a home computer.
Logged

Mephisto

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #4409 on: May 15, 2013, 10:28:14 pm »

How not to do dependency management.

My company recently went through something similar, albeit on a relatively minor scale.

We try to use everything from PyPI, but sometimes that is not possible. When a package does not exist or we need features in master that aren't yet packaged, we target the library's git repo.

It just so happens that we were targeting a tag in a repo that is fairly vital to our code. Tags are fairly stable, yes? Nope. For whatever reason, the owner renamed that particular tag. Unbeknownst to us, targeting a nonexistent tag in your requirements file silently falls back to targeting head which may (and in this case did) contain code that breaks everything.

Half a week of running our big breadwinner on half as many servers all the while trying to debug code you've never worked with and waiting for the original programmer to get back from vacation. We did learn a lesson, though. Our newest intern received the task of ensuring that all requirements from PyPI refer to specific version  numbers and all projects from external git repos refer to specific commit hashes.
Logged
Pages: 1 ... 292 293 [294] 295 296 ... 796