Skip to main content

SharePoint Game Webpart

http://spgameoflifewebpart.codeplex.com/


Goal: The Game of Life web part was created for a talk I presented at SharePoint Saturday New York in 2009. At the time, SharePoint 2010 was still in Beta and most people hadn't see the Enterprise Metadata Management (taxonomy) features. I used the Game of Life web part as an introduction to the new taxonomy API. I offered to provide the code, so here it is.


Requirements
-----------------------
- SharePoint Server 2010 with Enterprise Features
- Visual Studio 2010 (inc. SharePoint tools)

Setup
-----------------------
1. Add your account as a Term Store Administrator. This right is independent to Site Collection Administrator or Farm Administrator status.

To open the Term Store Management Tool go to Site Actions > Site Settings > Site Administartion > Term Store Management.
You can also  open the same interface from Central Administration > Manage Service Applications > Managed Metadata Service.

2. Run the soluiton file for the web part and choose Debug.

"To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges." -- MS

3. Once you have the project running in debug mode, add the Game of Life web part to a page and set the values for the Managed Metadata Service and TermStore Group name in the web part properties.

4. Choose a preset pattern or set your own by clicking on cells in the grid.

5. Set the number of generations and then run it.

image

Comments

Popular posts from this blog

How to store the sharepoint List or List Item within the recycle bin of the site while deleting it programmatically ?

Whenever we delete a sharepoint list or list item from the User Interface it get stored within the recycle bin of the site. But when we delete it programmatically it get's deleted permanently. So what we can do to store the List or List Item within the recycle bin while deleting it programmatically ? Generally we use the list.Delete() or item.Delete() method to delete the list or item. Instead of using the Delete() method we can use the Recycle() method i.e list.Recycle() or item.Recycle(). This will store the item within the recycle bin.