Current Forum: Homework 5 - Parts 1 and 2 |
Date: Mon Nov 19 2001 12:08 am |
Author: Abeles, Peter J. <pja@andrew.cmu.edu> |
Subject: Re: 10 lines?? I only needed 3 - That must be some ugly code |
|
|
Ok while helping a friend tonight with his finite state machine I noticed the existance of the delta array and action/doit stuff. Dont ask me how I missed it but everything I was talking about was dealing with writing the WHOLE finite state machine. So thats why I was confused before. Yes using the provided functions you can very easily write it in 3 lines. Because of a bug I found my whole finite state machine is how a grand total of 14 lines (excluding a function where I massage the url so that it handles all links correctly, I used none of the provided functions and only make that one function call I just mentioned). Sorry for making a mountain out of a mole hill.
- Peter |
|