This project is an automated price protection module for an existing buying game called "Bid ladder ".
Here's what I Have Now:
The existing buying game mainly consists of a list of Buyers who are placed in a MySQL Table, ranked according to the purchase price that they had paid for a certain product. Each buyer is displayed on his own ladder step (DIV Container) according to how he is ranked.
I have an elaborate ajaxified template system: I can enter a Number in a field and the script will create that number of ladder steps on-the-fly. I can drag them to any position and save the resulting layout as a template. During game play, I can change the Number of ladder steps and the script will adjust the display accordingly.
Here's what I need:
I want to use the existing functionality of the Bid Ladder Game to create an automated price protection module. I will provide the coder with a detailed formula for triggering the price protection actions.
The coder should have extensive experience with Developing Wordpress Plugins, and creating draggable containers using AJAX. He should also have experience with Wordpress' cron job functionality.
Let me break this down a little bit for easier understanding.
The way my existing script currently works is By adding +1 to an existing numeric variable, my script will add another DIV container to the array.
By subtracting -1 to an existing numeric variable, my script currently removes one DIV container from the array.
For this project:
All we need to do is assign (X,Y) coordinates for where this container will appear.
This new container should always appear dynamically a specific distance from the last container in the array.
Next, we create a triggering mechanism that will define when to Add or Subtract +-1 from the above mentioned numeric variable.
To accomplish this task, we need to create about 5 numeric variables. The value for one will be entered in a New Text Field on the Product Setup Page . We will create one Control Panel Page in the Admin Area, here we will display the value for each of these variables (for monitoring purposes).
In this Control Panel, admin will set a Random Time for when to ADD +1 to the above mentioned numeric variable. Such as, Once between 0 -16 hours. (Admin can set frequency and can set hours: Possibly using wordpress cron job function). There will be two occurrences of this RANDOM type of routine set in this Control Panel, and run by the cron tab.
In addition to increasing the above mentioned numeric variable, we will insert a bid for the Bid Devil Player. By my script's existing functionality, this will cause the Bid Devil Player to appear in the correct DIV container.
When someone places a bid, the Reserve Price Function will be automatically triggered. Using a formula that I will provide, the script will check certain numeric values, under specified conditions the script will perform the ADD or SUBTRACT +-1 mentioned above, and ADD or CANCEL the Bid for the Bid Devil Player.
We could make it look nicer by having a great graphic appear in the div container, when the Bid Devil Player is displayed (rather than the existing name and gravatar image).
And that's it...